diff options
| -rw-r--r-- | lisp/textmodes/flyspell.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 44664b01938..5daafc66368 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -359,6 +359,8 @@ flyspell-buffer checks the whole buffer." | |||
| 359 | '(lambda () | 359 | '(lambda () |
| 360 | (if (and flyspell-multi-language-p ispell-process) | 360 | (if (and flyspell-multi-language-p ispell-process) |
| 361 | (ispell-kill-ispell t)))) | 361 | (ispell-kill-ispell t)))) |
| 362 | (make-local-hook 'change-major-mode-hook) | ||
| 363 | (add-hook 'change-major-mode-hook 'flyspell-mode-off) | ||
| 362 | ;; we end with the flyspell hooks | 364 | ;; we end with the flyspell hooks |
| 363 | (run-hooks 'flyspell-mode-hook)) | 365 | (run-hooks 'flyspell-mode-hook)) |
| 364 | 366 | ||