Hi all,
for a nice and tidy ledger I do two cleaning steps after having my entries in the ledger file and I am wondering how I could combine them to a single step.
First, I run (ledger-mode-clean-buffer)
from within emacs to have all my manual edits aligned and everything chronological in order.
Second, I have a macro that jumps to the next comment and runs (ledger-post-align-dwim).
Does anyone know, how I can extend (ledger-mode-clean-buffer)
to aling comments as well?
For context, this is how it looks right after csv import:
2023-02-01 GOODWORKS CORP
; Really long text with lots of numbers and descrition and a lot of whitespace actually and all the things that make my ledger not so pleasant to look at
assets:bank:checking $1000
income:salary $1000
and after cleaning
2023-02-01 GOODWORKS CORP
; Really long text with lots of numbers and descrition and a lot
; of whitespace actually and all the things that make my ledger
; not so pleasant to look at
assets:bank:checking $1000
income:salary $1000
Does anyone know enough elisp to add the function to ledger-mode-clean-buffer?
(If you have another approach, tidying your ledger, I am also interested in hearing it )
Best
Jonas