summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2018-01-18 23:51:40 -0500
committerKyle Meyer <kyle@kyleam.com>2018-01-20 18:01:14 -0500
commit9b009636f8df6bcef99f1dd985b997e292bac787 (patch)
treeee08398b74f1807b489c289eeae870a7a45b605c
parentd73f2e44eb49ad8d14f72835df922a92fd731052 (diff)
downloademacs.d-9b009636f8df6bcef99f1dd985b997e292bac787.tar.gz
Add support for a second dir-locals-file
Based on https://emacs.stackexchange.com/questions/4267/how-can-i-have-a-second-dir-locals
-rw-r--r--init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/init.el b/init.el
index a815c01..1079722 100644
--- a/init.el
+++ b/init.el
@@ -2387,6 +2387,13 @@
visible-bell t
enable-recursive-minibuffers t)
+(advice-add
+ 'hack-dir-local-variables :around
+ (lambda (fn)
+ (let ((dir-locals-file ".dir-locals-2.el"))
+ (funcall fn)))
+ '((name . "dir-locals-2")))
+
(setq bookmark-save-flag nil)
(use-package savehist