From 21614cb06ea4f7a7349c628e5b8a754f730b2f0d Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Tue, 22 Oct 2019 11:02:06 +0200 Subject: src: Create a named key This commit allows using the expansion in commands, instead of `\;`. It makes commands look more elegant, and prevents new-comers from falling into the trap of using without escaping the semicolon. --- rc/filetype/javascript.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc/filetype/javascript.kak') diff --git a/rc/filetype/javascript.kak b/rc/filetype/javascript.kak index 73894ab3..3dfa4d40 100644 --- a/rc/filetype/javascript.kak +++ b/rc/filetype/javascript.kak @@ -57,7 +57,7 @@ define-command -hidden javascript-indent-on-new-line %< # copy // comments prefix and following white spaces try %{ execute-keys -draft k s ^\h*\K#\h* y gh j P } # preserve previous line indent - try %{ execute-keys -draft \; K } + try %{ execute-keys -draft K } # filter previous line try %{ execute-keys -draft k : javascript-trim-indent } # indent after lines beginning / ending with opener token -- cgit v1.2.3