diff options
author | Alan Pearce | 2017-09-09 21:06:32 +0200 |
---|---|---|
committer | Alan Pearce | 2017-09-09 21:06:32 +0200 |
commit | 2b735a460a3f8334de5cac878fd2b0a390c2f0f2 (patch) | |
tree | 6a29fb154e9685544406604c8d2a7ef2054f9065 /emacs | |
parent | 5005fee3c4f24d93315c398292c8bd392a7169ce (diff) | |
download | dotfiles-2b735a460a3f8334de5cac878fd2b0a390c2f0f2.tar.lz dotfiles-2b735a460a3f8334de5cac878fd2b0a390c2f0f2.tar.zst dotfiles-2b735a460a3f8334de5cac878fd2b0a390c2f0f2.zip |
Emacs: fix error when checking if beancount is available
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.emacs.d/main.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 0b7d7b4..e40bf95 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 |