Load dir-locals on eshell startup

This commit is contained in:
Jeremy Dormitzer 2019-02-07 16:54:35 -05:00
parent 6811a0ee23
commit 1e5341684b

View File

@ -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