diff options
author | Alan Pearce | 2019-11-22 19:07:54 +0100 |
---|---|---|
committer | Alan Pearce | 2019-11-22 19:07:54 +0100 |
commit | d04c17a8d7c3f613e8bf19d949f0aa927df54fb7 (patch) | |
tree | a19f4649e27558622273f8f3972166cfcfb4540b /user/emacs | |
parent | d858ce8f88a781e695832fc59463054af76001dc (diff) | |
download | nixfiles-d04c17a8d7c3f613e8bf19d949f0aa927df54fb7.tar.lz nixfiles-d04c17a8d7c3f613e8bf19d949f0aa927df54fb7.tar.zst nixfiles-d04c17a8d7c3f613e8bf19d949f0aa927df54fb7.zip |
Emacs: improve ledger setup
Diffstat (limited to 'user/emacs')
-rw-r--r-- | user/emacs/.emacs.d/init.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el index fbdcb402..9362f958 100644 --- a/user/emacs/.emacs.d/init.el +++ b/user/emacs/.emacs.d/init.el @@ -699,9 +699,11 @@ _p_rev _u_pper _=_: upper/lower _r_esolve ;;;; 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))) |