diff --git a/contrib/!lang/emacs-lisp/packages.el b/contrib/!lang/emacs-lisp/packages.el index 4fe78eac7..91e4f2146 100644 --- a/contrib/!lang/emacs-lisp/packages.el +++ b/contrib/!lang/emacs-lisp/packages.el @@ -16,6 +16,7 @@ eldoc elisp-slime-nav evil + flycheck ielm macrostep 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 () (semantic/enable-semantic-mode 'emacs-lisp-mode) (eval-after-load 'semantic diff --git a/contrib/syntax-checking/packages.el b/contrib/syntax-checking/packages.el index 2f7d1b140..ee03f6d92 100644 --- a/contrib/syntax-checking/packages.el +++ b/contrib/syntax-checking/packages.el @@ -33,10 +33,6 @@ :evil-leader "ts")) :config (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") ;; color mode line faces