lang/emacs-lisp: disable flycheck in new private modules too #425
This commit is contained in:
parent
a862d0eeb1
commit
87f47e6d9a
1 changed files with 5 additions and 1 deletions
|
@ -56,7 +56,11 @@
|
|||
(defun +emacs-lisp|init-flycheck ()
|
||||
"Initialize flycheck-mode if not in emacs.d."
|
||||
(when (and buffer-file-name
|
||||
(not (file-in-directory-p buffer-file-name doom-emacs-dir)))
|
||||
(not (cl-loop for dir in (append (list doom-emacs-dir)
|
||||
doom-modules-dirs
|
||||
doom-psuedo-module-dirs)
|
||||
if (file-in-directory-p buffer-file-name dir)
|
||||
return t)))
|
||||
(flycheck-mode +1))))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue