aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-flycheck.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/init-flycheck.el b/lisp/init-flycheck.el
index c046ab2..d099bbe 100644
--- a/lisp/init-flycheck.el
+++ b/lisp/init-flycheck.el
@@ -1,7 +1,10 @@
(require-package 'flycheck)
-(add-hook 'after-init-hook 'global-flycheck-mode)
-;; Disable on emacs-lisp
-(setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc))
+;; Enable for only languages
+;;(add-hook 'emacs-lisp-mode-hook 'flycheck-mode)
+(add-hook 'c++-mode-hook 'flycheck-mode)
+(add-hook 'html-mode-hook 'flycheck-mode)
+(add-hook 'sh-mode-hook 'flycheck-mode)
+;; (add-hook 'after-init-hook 'global-flycheck-mode)
(provide 'init-flycheck)