diff --git a/emacs/init.org b/emacs/init.org index 0d080a7..80dd198 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -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