Actually enable flyspell-prog-mode

Add flycheck-prog-mode to prog-mode-hook to actually turn it on in
programming modes.
This commit is contained in:
Sebastian Wiesner 2015-10-15 13:10:06 +02:00 committed by syl20bnr
parent 77d5a36dec
commit 4af3eabc45

View file

@ -24,6 +24,9 @@
(spacemacs/add-flyspell-hook 'markdown-mode)
(spacemacs/add-flyspell-hook 'org-mode)
(spacemacs/add-flyspell-hook 'text-mode)
(when spell-checking-enable-by-default
(add-hook 'prog-mode-hook 'flyspell-prog-mode))
(spacemacs|add-toggle spelling-checking
:status flyspell-mode
:on (flyspell-mode)
@ -31,14 +34,12 @@
:documentation
"Enable automatic spell checking."
:evil-leader "tS")
(evil-leader/set-key
"Sd" 'ispell-change-dictionary
"Sn" 'flyspell-goto-next-error))
:config
(progn
(when spell-checking-enable-by-default
(flyspell-prog-mode))
(spacemacs|diminish flyspell-mode "" " S"))))
(spacemacs|diminish flyspell-mode "" " S")))
(defun spell-checking/init-helm-flyspell ()
(use-package helm-flyspell