branch: elpa/drupal-mode
commit 9c618f003cb5e870934b65a039f39767f400714d
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>

    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.
---
 drupal-mode.el   |  1 +
 drupal/ispell.el | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/drupal-mode.el b/drupal-mode.el
index 030b67a844..2e87826aa0 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -330,6 +330,7 @@ mode-hook, i.e.
 ;; Load support for various Emacs features if necessary.
 (eval-after-load 'etags '(require 'drupal/etags))
 (eval-after-load 'gtags '(require 'drupal/gtags))
+(eval-after-load 'ispell '(require 'drupal/ispell))
 
 
 
diff --git a/drupal/ispell.el b/drupal/ispell.el
new file mode 100644
index 0000000000..f06a0d64b2
--- /dev/null
+++ b/drupal/ispell.el
@@ -0,0 +1,21 @@
+;;; drupal/ispell.el --- Drupal-mode support for ispell
+
+;;; Commentary:
+
+;; Enable drupal-mode support for ispell.
+
+;;; Code:
+
+(defun drupal/ispell-enable ()
+  "Set `ispell-local-dictionary' to `american'.
+Comments and names should use US English spelling (e.g., `color'
+not `colour') according to http://drupal.org/coding-standards.";
+  (setq ispell-local-dictionary "american"))
+
+(add-hook 'drupal-mode-hook 'drupal/ispell-enable)
+
+
+
+(provide 'drupal/ispell)
+
+;;; drupal/ispell.el ends here

Reply via email to