From 909fc12aaa702d09263156ab0a4199d00b895fab Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Fri, 14 Apr 2023 17:09:10 +0200 Subject: Format ledger line on tab in normal mode --- tw/home/files/emacs-init.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tw') diff --git a/tw/home/files/emacs-init.el b/tw/home/files/emacs-init.el index 12fcf0a6..5641a4f6 100644 --- a/tw/home/files/emacs-init.el +++ b/tw/home/files/emacs-init.el @@ -312,6 +312,8 @@ eos)) (use-package ledger-mode + :after (evil) + :commands (ledger-mode) :mode (rx ".journal" eos) :custom (ledger-default-date-format ledger-iso-date-format "Use hledger-style dates.") @@ -320,7 +322,10 @@ (ledger-post-account-alignment-column 2 "Use 2-space indents.") (ledger-post-amount-alignment-at :decimal "Align amounts at decimal points/commas.") (ledger-post-amount-alignment-column 52 "Align amounts' decimal points to the 52nd column.") - (ledger-highlight-xact-under-point nil "Don't highlight the transaction at point.")) + (ledger-highlight-xact-under-point nil "Don't highlight the transaction at point.") + :config + (evil-define-key 'normal ledger-mode-map + (kbd "TAB") #'ledger-indent-line)) (use-package geiser :after (evil) -- cgit v1.2.3