summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2019-11-22 19:07:54 +0100
committerAlan Pearce2019-11-22 19:07:54 +0100
commitd04c17a8d7c3f613e8bf19d949f0aa927df54fb7 (patch)
treea19f4649e27558622273f8f3972166cfcfb4540b /user
parentd858ce8f88a781e695832fc59463054af76001dc (diff)
downloadnixfiles-d04c17a8d7c3f613e8bf19d949f0aa927df54fb7.tar.lz
nixfiles-d04c17a8d7c3f613e8bf19d949f0aa927df54fb7.tar.zst
nixfiles-d04c17a8d7c3f613e8bf19d949f0aa927df54fb7.zip
Emacs: improve ledger setup
Diffstat (limited to 'user')
-rw-r--r--user/emacs/.emacs.d/init.el2
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)))