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