From 2d21a6b697c48c8c65f646c9146caeb67d60fdf4 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 6 Feb 2019 19:20:03 -0500 Subject: [PATCH] Only load direnv if it's installed --- emacs/init.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 5261e27..d3c1378 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -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.