Move flycheck config to emacs-lisp layer

This commit is contained in:
syl20bnr 2015-08-13 22:40:29 -04:00
parent 4e989acce8
commit e87e51a6d4
2 changed files with 6 additions and 4 deletions

View file

@ -16,6 +16,7 @@
eldoc eldoc
elisp-slime-nav elisp-slime-nav
evil evil
flycheck
ielm ielm
macrostep macrostep
semantic semantic
@ -79,6 +80,11 @@
";; " ";; "
"")))) ""))))
(defun emacs-lisp/post-init-flycheck ()
;; Make flycheck recognize packages in loadpath
;; i.e (require 'company) will not give an error now
(setq flycheck-emacs-lisp-load-path 'inherit))
(defun emacs-lisp/post-init-semantic () (defun emacs-lisp/post-init-semantic ()
(semantic/enable-semantic-mode 'emacs-lisp-mode) (semantic/enable-semantic-mode 'emacs-lisp-mode)
(eval-after-load 'semantic (eval-after-load 'semantic

View file

@ -33,10 +33,6 @@
:evil-leader "ts")) :evil-leader "ts"))
:config :config
(progn (progn
;; Make flycheck recognize packages in loadpath
;; i.e (require 'company) will not give an error now
(setq flycheck-emacs-lisp-load-path 'inherit)
(spacemacs|diminish flycheck-mode "" " s") (spacemacs|diminish flycheck-mode "" " s")
;; color mode line faces ;; color mode line faces