Make this less complicated

This commit is contained in:
Jeremy Dormitzer 2019-02-06 19:14:15 -05:00
parent edb8e5740f
commit d4bb4e09ae

View File

@ -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