diff --git a/emacs/init.org b/emacs/init.org index 5ec8d55..3a6ede4 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2520,7 +2520,7 @@ And a function to run any program visually: Load .dir-locals.el when switching directories: #+BEGIN_SRC emacs-lisp (add-hook 'eshell-mode-hook #'hack-dir-local-variables-non-file-buffer) - (add-hook 'eshell-directory-change-hook #'hack-dir-local-variables-non-file-buffer) + (add-hook 'eshell-after-prompt-hook #'hack-dir-local-variables-non-file-buffer) #+END_SRC A function to properly clear the eshell: