Move flycheck setq to :init block

Allow the user to override the settings in dotspacemacs/config
This commit is contained in:
syl20bnr 2015-03-30 10:47:52 -04:00
parent 336aba6856
commit 31deb94d7f

View file

@ -1105,13 +1105,13 @@ which require an initialization must be listed explicitly in the list.")
(defun spacemacs/init-flycheck ()
(use-package flycheck
:defer t
:init
(setq flycheck-check-syntax-automatically '(save mode-enabled)
flycheck-standard-error-navigation nil)
:config
(progn
(spacemacs|diminish flycheck-mode "" " F")
(setq flycheck-check-syntax-automatically '(save mode-enabled)
flycheck-standard-error-navigation nil)
(defun spacemacs/mode-line-flycheck-info-toggle ()
"Toggle display of flycheck info."
(interactive)