From df593f7cbcdb10a32e9a6bb9ee607af6b73931c1 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 28 Apr 2020 16:04:29 -0400 Subject: [PATCH] Run direnv/python-venv stuff after every prompt rendering in eshell --- emacs/init.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: