all repos — nixfiles @ d04c17a8d7c3f613e8bf19d949f0aa927df54fb7

System and user configuration, managed by nix and home-manager

Emacs: improve ledger setup
Alan Pearce alan@alanpearce.eu
Fri, 22 Nov 2019 19:07:54 +0100
commit

d04c17a8d7c3f613e8bf19d949f0aa927df54fb7

parent

d858ce8f88a781e695832fc59463054af76001dc

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M user/emacs/.emacs.d/init.eluser/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)))