aboutsummaryrefslogtreecommitdiff
path: root/tw/home/files/emacs-init.el
diff options
context:
space:
mode:
Diffstat (limited to 'tw/home/files/emacs-init.el')
-rw-r--r--tw/home/files/emacs-init.el7
1 files changed, 6 insertions, 1 deletions
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)