Make this less complicated
This commit is contained in:
parent
edb8e5740f
commit
d4bb4e09ae
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user