Only load direnv if it's installed

This commit is contained in:
Jeremy Dormitzer 2019-02-06 19:20:03 -05:00
parent 1725afbb60
commit 2d21a6b697

View File

@ -2386,8 +2386,9 @@ The Emacs Multi-Media System. For libtag to work, libtag must be installed on th
[[https://direnv.net/][Direnv]] automatically runs bash scripts when you enter certain directories. This sets it up to work with Emacs:
#+BEGIN_SRC emacs-lisp
(use-package direnv
:config (direnv-mode))
(add-hook 'eshell-directory-change-hook #'direnv-update-directory-environment)
:if (executable-find "direnv")
:config (direnv-mode)
(add-hook 'eshell-directory-change-hook #'direnv-update-directory-environment))
#+END_SRC
* SQL
Emacs has excellent built-in SQL support.