diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-10 01:23:31 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-10 01:23:31 -0500 |
| commit | 55b85754d78f268907ad5fa5be886973bbef921d (patch) | |
| tree | 6ccbcd28fb9aa0daacd5c278c5d3a965d0d3681f /modules/auto-dim-config.el | |
| parent | cb1d42de518514b3d3ee07e85c36e26e7570916e (diff) | |
| download | dotemacs-55b85754d78f268907ad5fa5be886973bbef921d.tar.gz dotemacs-55b85754d78f268907ad5fa5be886973bbef921d.zip | |
fix(flycheck): lint ledger buffers, which nothing ever did
flycheck-ledger registers a ledger checker, but a checker only runs where flycheck-mode is on, and flycheck-mode was hooked to sh-mode and emacs-lisp-mode only. There's no global-flycheck-mode. So an unbalanced transaction in a financial file produced no warning at all, while the ledger module's commentary advertised linting.
The hook goes in flycheck-config, not ledger-config, so that list stays the one answer to "where is flycheck turned on?".
Verified on an unbalanced fixture: flycheck now reports "Transaction does not balance" with the $10.00 remainder, on the right line.
I also accepted the whole-buffer sort the audit flagged. ledger-sort-startkey keys on the ISO date alone, and sort-subr is stable, so a save orders by date and leaves same-day transactions where they were typed. The audit note records both.
Diffstat (limited to 'modules/auto-dim-config.el')
0 files changed, 0 insertions, 0 deletions
