Skip to content

Commit 9c618f0

Browse files
committed
Set ispell-local-dictionary' to american'.
When ispell is loaded `ispell-local-dictionary' is set to `american' as Comments and names should use US English spelling (e.g., `color' not `colour') according to http://drupal.org/coding-standards.
1 parent 1e06f39 commit 9c618f0

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

drupal-mode.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ mode-hook, i.e.
330330
;; Load support for various Emacs features if necessary.
331331
(eval-after-load 'etags '(require 'drupal/etags))
332332
(eval-after-load 'gtags '(require 'drupal/gtags))
333+
(eval-after-load 'ispell '(require 'drupal/ispell))
333334

334335

335336

drupal/ispell.el

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
;;; drupal/ispell.el --- Drupal-mode support for ispell
2+
3+
;;; Commentary:
4+
5+
;; Enable drupal-mode support for ispell.
6+
7+
;;; Code:
8+
9+
(defun drupal/ispell-enable ()
10+
"Set `ispell-local-dictionary' to `american'.
11+
Comments and names should use US English spelling (e.g., `color'
12+
not `colour') according to http://drupal.org/coding-standards."
13+
(setq ispell-local-dictionary "american"))
14+
15+
(add-hook 'drupal-mode-hook 'drupal/ispell-enable)
16+
17+
18+
19+
(provide 'drupal/ispell)
20+
21+
;;; drupal/ispell.el ends here

0 commit comments

Comments
 (0)