Skip to content

Commit 00fa577

Browse files
committed
Cleanup.
Remove left overs from when this was a major mode. Be consistent in the way we describe the package.
1 parent 243db30 commit 00fa577

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dir

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ File: dir, Node: Top This is the top of the INFO tree
1515
* Menu:
1616

1717
Programming
18-
* Drupal: (drupal-mode). Advanced minor mode for developing in Drupal.
18+
* Drupal: (drupal-mode). Advanced minor mode for Drupal development.

drupal-mode-pkg.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
(define-package "drupal-mode" "0.1.0"
2-
"Advanced minor mode for developing in Drupal"
2+
"Advanced minor mode for Drupal development"
33
'((php-mode "1.5.0")))

drupal-mode.el

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; drupal-mode.el --- Advanced minor mode for developing in Drupal
1+
;;; drupal-mode.el --- Advanced minor mode for Drupal development
22

33
;; Copyright (C) 2012 Arne Jørgensen
44

@@ -86,7 +86,7 @@ First parameter is the Drupal version. Second parameter is the search term."
8686

8787
;;;###autoload
8888
(define-minor-mode drupal-mode
89-
"Major mode for developing Drupal modules and code.\n\n\\{drupal-mode-map}"
89+
"Advanced minor mode for Drupal development.\n\n\\{drupal-mode-map}"
9090
:group 'drupal
9191
:init-value nil
9292
:lighter "/Drupal"
@@ -153,7 +153,7 @@ According to http://drupal.org/coding-standards#indenting."
153153
"Convert to unix style line ending.
154154
According to http://drupal.org/coding-standards#indenting you
155155
should save your files with unix style end of line."
156-
(when (and (eq major-mode 'drupal-mode)
156+
(when (and drupal-mode
157157
drupal-convert-line-ending
158158
(/= (coding-system-eol-type buffer-file-coding-system) 0))
159159
(if (or (eq drupal-convert-line-ending t)
@@ -166,7 +166,7 @@ should save your files with unix style end of line."
166166

167167
(defun drupal-delete-trailing-whitespace ()
168168
"Delete trailing whitespace if in drupal mode."
169-
(when (and (eq major-mode 'drupal-mode)
169+
(when (and drupal-mode
170170
drupal-delete-trailing-whitespace)
171171
(delete-trailing-whitespace)))
172172

0 commit comments

Comments
 (0)