2015-08-28 11:02:20 +00:00
|
|
|
;;; funcs.el --- Syntax Checking Layer functions File for Spacemacs
|
|
|
|
;;
|
2016-01-12 02:40:54 +00:00
|
|
|
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
|
2015-08-28 11:02:20 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
2015-12-09 11:29:19 +00:00
|
|
|
(defun spacemacs/add-flycheck-hook (hook)
|
|
|
|
"Add flycheck to the given HOOK, if
|
2015-08-28 11:02:20 +00:00
|
|
|
`syntax-checking-enable-by-default' is true."
|
|
|
|
(when syntax-checking-enable-by-default
|
2015-12-09 11:29:19 +00:00
|
|
|
(add-hook hook 'flycheck-mode)))
|