diff options
-rw-r--r-- | lisp/init-flycheck.el | 9 |
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) |