all repos — nixfiles @ 3ad99faaddef928e1fcdfa3df6d9e96710142b1b

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

Emacs: Configure beancount mode
Alan Pearce alan@alanpearce.eu
Fri, 01 Sep 2017 20:48:25 +0200
commit

3ad99faaddef928e1fcdfa3df6d9e96710142b1b

parent

57de1e62030f812a20918509fdb07154c7622e73

1 files changed, 12 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -1788,6 +1788,18 @@ ("payee" "ledger -f %(ledger-file) reg @%(payee)")                                    ("account" "ledger -f %(ledger-file) reg %(account)")))))
 ;; #+END_SRC
 
+;; *** 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)
+    (add-to-list 'load-path (expand-file-name "editors/emacs/"
+                                              beancount-dir))
+    (use-package beancount
+      :defines (beancount-use-ido)
+      :config (setq beancount-use-ido nil))))
+;; #+END_SRC
+
 ;; *** Markdown
 
 ;; #+BEGIN_SRC emacs-lisp