From: Karl Heuer Date: Tue, 9 Mar 1999 03:29:04 +0000 (+0000) Subject: (flyspell-mode-on): Use X-Git-Tag: emacs-20.4~491 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e28a78f514b1f6cc8edc2cdca46c12793e03f26b;p=emacs.git (flyspell-mode-on): Use change-major-mode-hook. --- 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))