Add buffer mode hook to update direnv in cider repl

This commit is contained in:
Jeremy Dormitzer 2019-07-08 16:45:08 -04:00
parent d6b11259f3
commit 6448d372d1

View File

@ -2616,7 +2616,8 @@ The Emacs Multi-Media System. For libtag to work, libtag must be installed on th
: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))
(add-hook 'eshell-directory-change-hook #'direnv-update-directory-environment)
(add-buffer-mode-hook 'cider-repl-mode (lambda () (direnv-update-directory-environment nrepl-project-dir))))
#+END_SRC
* SQL
Emacs has excellent built-in SQL support.