1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 20:32:00 -08:00

(flyspell-mode-on): Use

change-major-mode-hook.
This commit is contained in:
Karl Heuer 1999-03-09 03:29:04 +00:00
parent 7da6666ad9
commit e28a78f514

View file

@ -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))