From 2d15c13c1e5fe0c1c274ab17ba3f9fba6d4c6f74 Mon Sep 17 00:00:00 2001 From: codesoap Date: Tue, 2 Jul 2019 09:49:52 +0200 Subject: [PATCH] ledger.kak: Automatically indent postings in transactions --- rc/filetype/ledger.kak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc/filetype/ledger.kak b/rc/filetype/ledger.kak index d0b9b540..4e4eaaf9 100644 --- a/rc/filetype/ledger.kak +++ b/rc/filetype/ledger.kak @@ -130,6 +130,8 @@ define-command -hidden ledger-indent-on-new-line %[ try %[ execute-keys -draft \; K ] # cleanup trailing whitespaces from previous line try %[ execute-keys -draft k s \h+$ d ] + # indent after the first line of a transaction + try %[ execute-keys -draft k ^[0-9] j ] ] ]