From 7c0734a14c8da32df4d80c5529db879d6aec8ba2 Mon Sep 17 00:00:00 2001 From: Benson Chu Date: Tue, 2 Jul 2024 19:13:30 -0500 Subject: [PATCH] ledger update --- config-ext.org | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/config-ext.org b/config-ext.org index da43bc2..1d9dee5 100644 --- a/config-ext.org +++ b/config-ext.org @@ -138,15 +138,21 @@ (save-restriction (narrow-to-region start end) (beginning-of-buffer) - (replace-regexp (rx " " - (or "*" "!") - " " - (group (+ (not (any " " "\n"))))) - " \\1 ") - (replace-regexp (rx (and " " (+ " ") - ";; [" (+ (any digit "-" "=" "/")) "]" - line-end)) - ""))))) + (save-excursion + (replace-regexp (rx " " + (or "*" "!") + " " + (group (+ (not (any " " "\n"))))) + " \\1 ")) + (save-excursion + (replace-regexp (rx (and " " (+ " ") + ";; [" (+ (any digit "-" "=" "/")) "]" + line-end)) + "")) + (save-excursion + (replace-regexp (rx line-start (group (+ (any "/" digit)) " ") + " ") + "\\1")))))) (advice-add #'ledger-fully-complete-xact :after