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:
parent
7da6666ad9
commit
e28a78f514
1 changed files with 2 additions and 0 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue