simple syntax of flycheck

This commit is contained in:
Jesús 2018-08-04 16:21:04 -05:00
parent b48545bb7b
commit 4e0ca9a865
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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)