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
commit8737da0ff6bace7fcf4fbcb9c87758c2b43c265e (patch)
tree8b18b4fac4a66ee8c39bcfe1993637bc98bd983f /init.el
parent07db16650d6f5758f7eae2100c2353910a2613fd (diff)
downloaddotemacs-8737da0ff6bace7fcf4fbcb9c87758c2b43c265e.tar.gz
dotemacs-8737da0ff6bace7fcf4fbcb9c87758c2b43c265e.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 16f01983..589e4659 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 ---------------------------------