From 5546ba7eb4ef3929937460cdeb425c49af4b66c1 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Thu, 23 May 2013 17:22:08 -0400 Subject: [PATCH] Clean up some messy flycheck configuration. --- init-package/init-flycheck-color-mode-line.el | 2 -- init-package/init-flycheck.el | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/init-package/init-flycheck-color-mode-line.el b/init-package/init-flycheck-color-mode-line.el index 66eebd249..940dc06e2 100644 --- a/init-package/init-flycheck-color-mode-line.el +++ b/init-package/init-flycheck-color-mode-line.el @@ -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)) diff --git a/init-package/init-flycheck.el b/init-package/init-flycheck.el index 4561b38cd..e3e5e8013 100644 --- a/init-package/init-flycheck.el +++ b/init-package/init-flycheck.el @@ -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))