Skip to content

Commit ca93db3

Browse files
committed
Only change dictionary to `american' if it exists.
1 parent 9c618f0 commit ca93db3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drupal/ispell.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"Set `ispell-local-dictionary' to `american'.
1111
Comments and names should use US English spelling (e.g., `color'
1212
not `colour') according to http://drupal.org/coding-standards."
13-
(setq ispell-local-dictionary "american"))
13+
(when (member "american" (ispell-valid-dictionary-list))
14+
(setq ispell-local-dictionary "american")))
1415

1516
(add-hook 'drupal-mode-hook 'drupal/ispell-enable)
1617

0 commit comments

Comments
 (0)