summary refs log tree commit diff stats
path: root/emacs/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r--emacs/.emacs.d/main.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 0b7d7b4a..e40bf958 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -1791,7 +1791,8 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer."
 
 ;; #+BEGIN_SRC emacs-lisp
 (let ((beancount-dir (car (split-string (shell-command-to-string "ghq list --full-path beancount")))))
-  (when (file-directory-p beancount-dir)
+  (when (and beancount-dir
+             (file-directory-p beancount-dir))
     (add-to-list 'load-path (expand-file-name "editors/emacs/"
                                               beancount-dir))
     (use-package beancount