From 23397e5806906d55681aa2d1944ac8af0d4068fd Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 15 Sep 2017 16:28:11 +0200 Subject: [PATCH] =?UTF-8?q?[Misc]=20Don=E2=80=99t=20enable=20flyspell=20mo?= =?UTF-8?q?de=20on=20Windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 6b1dd2e..98902dc 100644 --- a/init.el +++ b/init.el @@ -114,6 +114,8 @@ (when (<= 24 emacs-major-version) (add-hook 'prog-mode-hook #'electric-indent-local-mode)) (add-hook 'lisp-mode-hook #'lispy-mode) + (unless (eq system-type 'windows-nt) + (add-hook 'text-mode-hook #'turn-on-flyspell)) ;; Hydras @@ -1186,7 +1188,6 @@ _h_ _l_ _o_k _y_ank (use-package flyspell :commands (flyspell-mode turn-on-flyspell) - :init (add-hook 'text-mode-hook #'turn-on-flyspell) :config (progn (unbind-key "C-M-i" flyspell-mode-map) (unbind-key "C-c $" flyspell-mode-map)))