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

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

[nongnu] elpa/drupal-mode ca93db3d20 027/308: Only change dictionary to


From: ELPA Syncer
Subject: [nongnu] elpa/drupal-mode ca93db3d20 027/308: Only change dictionary to `american' if it exists.
Date: Tue, 25 Jan 2022 10:59:04 -0500 (EST)

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

    Only change dictionary to `american' if it exists.
---
 drupal/ispell.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drupal/ispell.el b/drupal/ispell.el
index f06a0d64b2..703404f13c 100644
--- a/drupal/ispell.el
+++ b/drupal/ispell.el
@@ -10,7 +10,8 @@
   "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"))
+  (when (member "american" (ispell-valid-dictionary-list))
+    (setq ispell-local-dictionary "american")))
 
 (add-hook 'drupal-mode-hook 'drupal/ispell-enable)
 



reply via email to

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