Emacs: fix error when checking if beancount is available
Alan Pearce alan@alanpearce.eu
Sat, 09 Sep 2017 21:06:32 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -1791,7 +1791,8 @@ ;;;;;; Beancount ;; #+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