Clean up some messy flycheck configuration.

This commit is contained in:
syl20bnr 2013-05-23 17:22:08 -04:00
parent f576e455f7
commit 5546ba7eb4
2 changed files with 1 additions and 4 deletions

View file

@ -1,6 +1,4 @@
(require 'flycheck-color-mode-line)
(setq flycheck-check-syntax-automatically '(save mode-enabled))
(eval-after-load "flycheck"
'(add-hook 'flycheck-mode-hook 'flycheck-color-mode-line-mode))

View file

@ -4,8 +4,7 @@
json
python
ruby))
(add-hook (intern (concat (symbol-name mode) "-mode-hook"))
'flycheck-mode))
(setq flycheck-check-syntax-automatically (delq 'new-line flycheck-check-syntax-automatically))
(setq flycheck-check-syntax-automatically '(save mode-enabled))