diff --git a/emacs/init.org b/emacs/init.org index 4ef872f..59010d3 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -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.