Respect dir locals in eshell
This commit is contained in:
parent
2d8ff7dfaf
commit
4b6d1e2537
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user