Skip to content

Commit

Permalink
Check +emacs-lisp-disable-flycheck-in-dirs against default-directory
Browse files Browse the repository at this point in the history
Instead of buffer-file-name, which could be nil in some buffers.
  • Loading branch information
hlissner committed Jul 25, 2020
1 parent 807eb82 commit 99d5cd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/lang/emacs-lisp/autoload.el
Expand Up @@ -219,8 +219,8 @@ https://emacs.stackexchange.com/questions/10230/how-to-indent-keywords-aligned"
verbosity when editing a file in `doom-private-dir' or `doom-emacs-dir'."
(when (and (bound-and-true-p flycheck-mode)
(eq major-mode 'emacs-lisp-mode)
(or (not buffer-file-name)
(cl-find-if (doom-partial #'file-in-directory-p buffer-file-name)
(or (not default-directory)
(cl-find-if (doom-partial #'file-in-directory-p default-directory)
+emacs-lisp-disable-flycheck-in-dirs)))
(add-to-list (make-local-variable 'flycheck-disabled-checkers)
'emacs-lisp-checkdoc)
Expand Down

0 comments on commit 99d5cd1

Please sign in to comment.