diff options
| -rw-r--r-- | lisp/textmodes/flyspell.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 01db2d64b27..c224a970e01 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -543,8 +543,9 @@ in your .emacs file. | |||
| 543 | "Turn Flyspell mode on. Do not use this; use `flyspell-mode' instead." | 543 | "Turn Flyspell mode on. Do not use this; use `flyspell-mode' instead." |
| 544 | (setq ispell-highlight-face 'flyspell-incorrect-face) | 544 | (setq ispell-highlight-face 'flyspell-incorrect-face) |
| 545 | ;; local dictionaries setup | 545 | ;; local dictionaries setup |
| 546 | (ispell-change-dictionary | 546 | (or ispell-local-dictionary ispell-dictionary |
| 547 | (or ispell-local-dictionary ispell-dictionary flyspell-default-dictionary)) | 547 | (if flyspell-default-dictionary |
| 548 | (ispell-change-dictionary flyspell-default-dictionary))) | ||
| 548 | ;; we have to force ispell to accept the local definition or | 549 | ;; we have to force ispell to accept the local definition or |
| 549 | ;; otherwise it could be too late, the local dictionary may | 550 | ;; otherwise it could be too late, the local dictionary may |
| 550 | ;; be forgotten! | 551 | ;; be forgotten! |