all repos — nixfiles @ 2b735a460a3f8334de5cac878fd2b0a390c2f0f2

System and user configuration, managed by nix and home-manager

Emacs: fix error when checking if beancount is available

Alan Pearce
commit

2b735a460a3f8334de5cac878fd2b0a390c2f0f2

parent

5005fee3c4f24d93315c398292c8bd392a7169ce

1 file changed, 2 insertions(+), 1 deletion(-)

jump to
M emacs/.emacs.d/main.elemacs/.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