From e28a78f514b1f6cc8edc2cdca46c12793e03f26b Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Tue, 9 Mar 1999 03:29:04 +0000 Subject: [PATCH] (flyspell-mode-on): Use change-major-mode-hook. --- lisp/textmodes/flyspell.el | 2 ++ 1 file changed, 2 insertions(+) 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." '(lambda () (if (and flyspell-multi-language-p ispell-process) (ispell-kill-ispell t)))) + (make-local-hook 'change-major-mode-hook) + (add-hook 'change-major-mode-hook 'flyspell-mode-off) ;; we end with the flyspell hooks (run-hooks 'flyspell-mode-hook)) -- 2.39.2