Skip to content

Instantly share code, notes, and snippets.

@simonmichael
Last active February 9, 2024 14:05
Show Gist options
  • Save simonmichael/92aade653065ed9c9e215d03651b0baa to your computer and use it in GitHub Desktop.
Save simonmichael/92aade653065ed9c9e215d03651b0baa to your computer and use it in GitHub Desktop.
Emacs org-capture template for hledger/ledger/PTA transactions
(setq org-capture-templates '(
;...
("t" "h/ledger transaction" plain
(file "~/finance/2020.journal")
"%(org-read-date) %^{Description}
%^{Category|expenses:food:groceries|expenses:food:dining|expenses:transport:gasoline|expenses:home|expenses:medical|expenses:entertainment|revenues:consulting|revenues:misc} %^{Amount}
%^{Asset/liability account|assets:cash|assets:bank:checking|liabilities:bank:credit card}"
:empty-lines 1)
))
; based on https://www.reddit.com/r/plaintextaccounting/comments/k2jvmp/new_to_finances_is_ledgercli_a_good_choice_for/gdzi1sl/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment