From c960bfefd5fc19edec66f80e4f9b62d1b5ffeaf4 Mon Sep 17 00:00:00 2001 From: Eivind Fonn Date: Mon, 2 Nov 2015 11:05:24 +0100 Subject: [PATCH] Use flyspell-mode-off to turn off flyspell Otherwise the hook is run. --- layers/spell-checking/packages.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/spell-checking/packages.el b/layers/spell-checking/packages.el index a9671d2d1..496c4c7e8 100644 --- a/layers/spell-checking/packages.el +++ b/layers/spell-checking/packages.el @@ -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