Emacs: improve ledger setup
Alan Pearce alan@alanpearce.eu
Fri, 22 Nov 2019 19:07:54 +0100
1 files changed, 2 insertions(+), 0 deletions(-)
jump to
M user/emacs/.emacs.d/init.el → user/emacs/.emacs.d/init.el
@@ -699,9 +699,11 @@ ;;;; ledger (use-package ledger-mode + :gfhook '(ledger-flymake-enable) :config (progn (setq ledger-reconcile-default-commodity "€" ledger-narrow-on-reconcile t + ledger-clear-whole-transactions t ledger-reports `(("Monthly Expenses" "ledger -f %(ledger-file) reg -M \\^Flex --real -X EUR -l \"payee != 'Opening Balances'\"") ("Average Monthly Expenses (Past 12 Months)" ,(concat "ledger -f %(ledger-file) -b " (format-time-string "%Y-%m" (time-add (current-time) (days-to-time -365)))