Browse Source

Use global-flycheck-mode

custom
Bozhidar Batsov 13 years ago
parent
commit
c07fccb701
  1. 5
      modules/prelude-programming.el

5
modules/prelude-programming.el

@ -117,7 +117,6 @@
(when prelude-guru (when prelude-guru
(guru-mode +1)) (guru-mode +1))
(prelude-enable-whitespace) (prelude-enable-whitespace)
(flycheck-mode +1)
(prelude-local-comment-auto-fill) (prelude-local-comment-auto-fill)
(prelude-add-watchwords)) (prelude-add-watchwords))
@ -126,5 +125,9 @@
(add-hook 'prog-mode-hook (lambda () (add-hook 'prog-mode-hook (lambda ()
(run-hooks 'prelude-prog-mode-hook))) (run-hooks 'prelude-prog-mode-hook)))
(if (fboundp 'global-flycheck-mode)
(global-flycheck-mode +1)
(add-hook 'prog-mode-hook 'flycheck-mode))
(provide 'prelude-programming) (provide 'prelude-programming)
;;; prelude-programming.el ends here ;;; prelude-programming.el ends here
Loading…
Cancel
Save