mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
ledger update
This commit is contained in:
parent
e32e2f338c
commit
7c0734a14c
1 changed files with 15 additions and 9 deletions
|
|
@ -138,15 +138,21 @@
|
|||
(save-restriction
|
||||
(narrow-to-region start end)
|
||||
(beginning-of-buffer)
|
||||
(save-excursion
|
||||
(replace-regexp (rx " "
|
||||
(or "*" "!")
|
||||
" "
|
||||
(group (+ (not (any " " "\n")))))
|
||||
" \\1 ")
|
||||
" \\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
|
||||
|
|
|
|||
Loading…
Reference in a new issue