diff --git a/emacs/init.org b/emacs/init.org index e660353..ce47b20 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -893,6 +893,7 @@ Visual programs: 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) #+END_SRC @@ -2377,6 +2378,7 @@ The Emacs Multi-Media System. For libtag to work, libtag must be installed on th (use-package direnv :if (executable-find "direnv") :config (direnv-mode) + (add-hook 'eshell-mode-hook #'direnv-update-directory-environment) (add-hook 'eshell-directory-change-hook #'direnv-update-directory-environment)) #+END_SRC * SQL