Respect dir locals in eshell

This commit is contained in:
Jeremy Dormitzer 2019-02-06 10:50:55 -05:00
parent 2d8ff7dfaf
commit 4b6d1e2537

View File

@ -899,6 +899,16 @@ Visual programs:
(add-hook 'eshell-mode-hook #'eshell-setup)
#+END_SRC
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)))
#+END_SRC
Some aliases:
#+BEGIN_SRC emacs-lisp
(add-hook 'eshell-mode-hook