Add beancount report bal command
This commit is contained in:
parent
6a40eb3aaa
commit
39c36e5559
16
config.org
16
config.org
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue