Skip to content

Commit

Permalink
[finance] Add evil jump before adding xact
Browse files Browse the repository at this point in the history
ledger-add-transaction is likely to move point a decent distance (to
wherever the new transaction was added), so it's useful to be able to
jump back.
  • Loading branch information
bcc32 authored and smile13241324 committed Jan 7, 2024
1 parent 48746a8 commit 3d84b01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layers/+tools/finance/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,6 @@
:mode ledger-reconcile-mode)
(evilified-state-evilify-map ledger-report-mode-map
:eval-after-load ledger-report
:mode ledger-report-mode)))
:mode ledger-report-mode)
(define-advice ledger-add-transaction (:before (&rest _) add-evil-jump)
(evil-set-jump))))

0 comments on commit 3d84b01

Please sign in to comment.