Add beancount report bal command

This commit is contained in:
tecosaur 2020-03-19 00:49:23 +08:00
parent 6a40eb3aaa
commit 39c36e5559
1 changed files with 11 additions and 5 deletions

View File

@ -1620,11 +1620,17 @@ The [[https://bitbucket.org/blais/beancount/src/tip/editors/emacs/beancount.el][
enable it for ~.beancount~ files.
#+BEGIN_SRC emacs-lisp
(use-package! beancount
:load-path "~/.config/doom/lisp"
:mode ("\\.beancount\\'" . beancount-mode)
:config (setq beancount-electric-currency t)
;; TODO make the following *work*
:bind (:map beancount-mode-map ("S-RET" . #'beancount-align-to-previous-number)))
:load-path "~/.config/doom/lisp"
:mode ("\\.beancount\\'" . beancount-mode)
:config (setq beancount-electric-currency t)
(defun beancount-bal ()
"Run bean-report bal."
(interactive)
(let ((compilation-read-command nil))
(beancount--run "bean-report"
(file-relative-name buffer-file-name) "bal")))
;; TODO make the following *work*
:bind (:map beancount-mode-map ("S-RET" . #'beancount-align-to-previous-number)))
#+END_SRC
# Local variables: