summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-09-01 20:48:25 +0200
committerAlan Pearce2017-09-01 20:48:25 +0200
commit3ad99faaddef928e1fcdfa3df6d9e96710142b1b (patch)
tree84f29962a19d0c2ad6067777665985da4c11db9e /emacs
parent57de1e62030f812a20918509fdb07154c7622e73 (diff)
downloaddotfiles-3ad99faaddef928e1fcdfa3df6d9e96710142b1b.tar.lz
dotfiles-3ad99faaddef928e1fcdfa3df6d9e96710142b1b.tar.zst
dotfiles-3ad99faaddef928e1fcdfa3df6d9e96710142b1b.zip
Emacs: Configure beancount mode
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 3e45419..226cc2f 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -1788,6 +1788,18 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer."
                                    ("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