aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1999-03-09 03:29:04 +0000
committerKarl Heuer1999-03-09 03:29:04 +0000
commite28a78f514b1f6cc8edc2cdca46c12793e03f26b (patch)
tree3b8eacd0aa253ae1d4e79d38143f209703d7f726
parent7da6666ad95cb440af9c35f32ead9e810517a08b (diff)
downloademacs-e28a78f514b1f6cc8edc2cdca46c12793e03f26b.tar.gz
emacs-e28a78f514b1f6cc8edc2cdca46c12793e03f26b.zip
(flyspell-mode-on): Use
change-major-mode-hook.
-rw-r--r--lisp/textmodes/flyspell.el2
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