From 1e5341684b6c1ff98bdfd76fac66fe1565a1abd9 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 7 Feb 2019 16:54:35 -0500 Subject: [PATCH] Load dir-locals on eshell startup --- emacs/init.org | 2 ++ 1 file changed, 2 insertions(+) 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