# HG changeset patch # User Karl Heuer # Date 920950144 0 # Node ID 1544b0109c3b8aadc76be7831857999dc7623541 # Parent 5ab0869ed2c8917c3c3da0efbc250a56fec02103 (flyspell-mode-on): Use change-major-mode-hook. diff -r 5ab0869ed2c8 -r 1544b0109c3b lisp/textmodes/flyspell.el --- a/lisp/textmodes/flyspell.el Tue Mar 09 03:13:28 1999 +0000 +++ b/lisp/textmodes/flyspell.el Tue Mar 09 03:29:04 1999 +0000 @@ -359,6 +359,8 @@ '(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))