Use flyspell-mode-off to turn off flyspell

Otherwise the hook is run.
This commit is contained in:
Eivind Fonn 2015-11-02 11:05:24 +01:00
parent 09cb12cf30
commit c960bfefd5

View file

@ -50,7 +50,7 @@
(adict-change-dictionary ispell-local-dictionary)))
:off
(progn
(flyspell-mode -1)
(flyspell-mode-off)
;; Also disable auto-dictionary when disabling spell-checking.
(when (fboundp 'auto-dictionary-mode) (auto-dictionary-mode -1)))
:documentation