From d4bb4e09ae543fd5eaf8753c2aef95a0e632ebb9 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 6 Feb 2019 19:14:15 -0500 Subject: [PATCH] Make this less complicated --- emacs/init.org | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 1f41479..1037fc2 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -903,11 +903,7 @@ Visual programs: Load .dir-locals.el when switching directories: #+BEGIN_SRC emacs-lisp - (add-hook 'eshell-directory-change-hook - (lambda () - (setq dir-local-variables-alist nil - file-local-variables-alist nil) - (hack-dir-local-variables-non-file-buffer))) + (add-hook 'eshell-directory-change-hook #'hack-dir-local-variables-non-file-buffer) #+END_SRC