changeset 24458:1544b0109c3b

(flyspell-mode-on): Use change-major-mode-hook.
author Karl Heuer <kwzh@gnu.org>
date Tue, 09 Mar 1999 03:29:04 +0000
parents 5ab0869ed2c8
children 4e6a6d86b3af
files lisp/textmodes/flyspell.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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))