aboutsummaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-24 22:38:01 -0400
committerCraig Jennings <c@cjennings.net>2026-06-24 22:38:01 -0400
commit6ec857aec8958baa8d0c98c86ab4bbca9d2d1539 (patch)
tree60a0ae53fe173558a6529bb74e4f7de5c930df64 /init.el
parent134a530916f24a288e8b4755f336b1820868d4b4 (diff)
downloaddotemacs-6ec857aec8958baa8d0c98c86ab4bbca9d2d1539.tar.gz
dotemacs-6ec857aec8958baa8d0c98c86ab4bbca9d2d1539.zip
feat(ledger): un-orphan ledger-config and rewrite clean-on-save
ledger-config.el was never required in init.el, so the whole module was dead code. I added the require (which installs ledger-mode, flycheck-ledger, and company-ledger via the global ensure) and rewrote the clean-on-save: instead of rebinding C-x C-s to a clean-then-save command, a buffer-local before-save-hook tidies the buffer on every save path, gated by cj/ledger-clean-on-save. The reports shell out to the ledger CLI, so a load-time check now warns when it isn't on PATH. Added ledger-highlight-xact-under-point.
Diffstat (limited to 'init.el')
-rw-r--r--init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.el b/init.el
index 16f019839..589e46591 100644
--- a/init.el
+++ b/init.el
@@ -120,6 +120,7 @@
(require 'prog-webdev)
(require 'prog-json)
(require 'prog-yaml)
+(require 'ledger-config) ;; plain-text accounting (ledger format)
;; ---------------------------------- Org Mode ---------------------------------