dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0cc9c42825938bd047e06ea580d51959fc43e8af
parent a801e9e2dac03afda64ff4c841712b94a9141376
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Mon,  9 May 2022 22:19:13 +0200

emacs: org capture template for ledger

Diffstat:
Memacs/config.org | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/emacs/config.org b/emacs/config.org @@ -1057,6 +1057,20 @@ Save undo files into ~/.emacs.d/undo-tree ledger-reconcile-default-commodity "eur")) #+end_src +org-capture lets me add transactions from anywhere in Emacs: + +#+begin_src emacs-lisp + (add-to-list 'org-capture-templates `("$" "Ledger entry" plain + (file ,za/ledger-file) + "%(ledger-read-date \"Date\") %^{Payee} + %^{Account} %^{Amount} + Assets:ABN Checking%? + " + :empty-lines-before 1)) + + +#+end_src + Budget throws an error when there's multiple commodities involved. See discussion here: https://github.com/ledger/ledger/issues/1450#issuecomment-390067165 #+begin_src emacs-lisp