From 6d1569289ec05471b0895d3f1d985861a6b91212 Mon Sep 17 00:00:00 2001
From: Joe DeVivo <joe@devivo.com>
Date: Sat, 22 Oct 2016 07:33:48 -0700
Subject: [PATCH] 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
---
 init.el                 | 4 ++--
 personal/.dir-locals.el | 5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)
 create mode 100644 personal/.dir-locals.el

diff --git a/init.el b/init.el
index b1f223f..8666e9b 100644
--- a/init.el
+++ b/init.el
@@ -93,7 +93,7 @@ by Prelude.")
 ;; preload the personal settings from `prelude-personal-preload-dir'
 (when (file-exists-p prelude-personal-preload-dir)
   (message "Loading personal configuration files in %s..." prelude-personal-preload-dir)
-  (mapc 'load (directory-files prelude-personal-preload-dir 't "^[^#].*el$")))
+  (mapc 'load (directory-files prelude-personal-preload-dir 't "^[^#\.].*el$")))
 
 (message "Loading Prelude's core...")
 
@@ -124,7 +124,7 @@ by Prelude.")
 ;; load the personal settings (this includes `custom-file')
 (when (file-exists-p prelude-personal-dir)
   (message "Loading personal configuration files in %s..." prelude-personal-dir)
-  (mapc 'load (directory-files prelude-personal-dir 't "^[^#].*el$")))
+  (mapc 'load (directory-files prelude-personal-dir 't "^[^#\.].*el$")))
 
 (message "Prelude is ready to do thy bidding, Master %s!" current-user)
 
diff --git a/personal/.dir-locals.el b/personal/.dir-locals.el
new file mode 100644
index 0000000..69fa3ca
--- /dev/null
+++ b/personal/.dir-locals.el
@@ -0,0 +1,5 @@
+;; This will make sure that nothing in your personal directory will be
+;; forced through the emacs-lisp-checkdoc flychecker. That's a great
+;; checker for real modules, but these are just config files, and you
+;; deserve not to get warnings all the time
+((emacs-lisp-mode . ((flycheck-disabled-checkers . (emacs-lisp-checkdoc)))))