Skip to content

Commit 6d15692

Browse files
joedevivobbatsov
authored andcommitted
Disable Flycheck warnings for personal
* Modified the regex so prelude won't load any .el files that start with a `.`, spefically for `.dir-locals.el`. This file does not play nice with `load` * Added a `personal/.dir-locals.el` to disable the flychecker
1 parent 7b4fdca commit 6d15692

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

init.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ by Prelude.")
9393
;; preload the personal settings from `prelude-personal-preload-dir'
9494
(when (file-exists-p prelude-personal-preload-dir)
9595
(message "Loading personal configuration files in %s..." prelude-personal-preload-dir)
96-
(mapc 'load (directory-files prelude-personal-preload-dir 't "^[^#].*el$")))
96+
(mapc 'load (directory-files prelude-personal-preload-dir 't "^[^#\.].*el$")))
9797

9898
(message "Loading Prelude's core...")
9999

@@ -124,7 +124,7 @@ by Prelude.")
124124
;; load the personal settings (this includes `custom-file')
125125
(when (file-exists-p prelude-personal-dir)
126126
(message "Loading personal configuration files in %s..." prelude-personal-dir)
127-
(mapc 'load (directory-files prelude-personal-dir 't "^[^#].*el$")))
127+
(mapc 'load (directory-files prelude-personal-dir 't "^[^#\.].*el$")))
128128

129129
(message "Prelude is ready to do thy bidding, Master %s!" current-user)
130130

personal/.dir-locals.el

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
;; This will make sure that nothing in your personal directory will be
2+
;; forced through the emacs-lisp-checkdoc flychecker. That's a great
3+
;; checker for real modules, but these are just config files, and you
4+
;; deserve not to get warnings all the time
5+
((emacs-lisp-mode . ((flycheck-disabled-checkers . (emacs-lisp-checkdoc)))))

0 commit comments

Comments
 (0)