emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/drupal-mode 9c618f003c 026/308: Set `ispell-local-dictiona


From: ELPA Syncer
Subject: [nongnu] elpa/drupal-mode 9c618f003c 026/308: Set `ispell-local-dictionary' to `american'.
Date: Tue, 25 Jan 2022 10:59:04 -0500 (EST)

branch: elpa/drupal-mode
commit 9c618f003cb5e870934b65a039f39767f400714d
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>

    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

[Prev in Thread] Current Thread [Next in Thread]