diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2019-10-22 11:02:06 +0200 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2019-10-22 11:02:06 +0200 |
| commit | 21614cb06ea4f7a7349c628e5b8a754f730b2f0d (patch) | |
| tree | a5a65ba0f4489808cf312a2db9e0d5699874ff40 /rc/filetype/makefile.kak | |
| parent | 3c34de7fe7db607fe2c0519471b8d3c4935ce717 (diff) | |
src: Create a <semicolon> named key
This commit allows using the <semicolon> expansion in commands, instead
of `\;`.
It makes commands look more elegant, and prevents new-comers from
falling into the trap of using <a-;> without escaping the semicolon.
Diffstat (limited to 'rc/filetype/makefile.kak')
| -rw-r--r-- | rc/filetype/makefile.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/makefile.kak b/rc/filetype/makefile.kak index 26f4f564..76420ac6 100644 --- a/rc/filetype/makefile.kak +++ b/rc/filetype/makefile.kak @@ -53,7 +53,7 @@ evaluate-commands %sh{ define-command -hidden makefile-indent-on-new-line %{ evaluate-commands -draft -itersel %{ # preserve previous line indent - try %{ execute-keys -draft \;K<a-&> } + try %{ execute-keys -draft <semicolon>K<a-&> } ## If the line above is a target indent with a tab try %{ execute-keys -draft Z k<a-x> <a-k>^\S.*?(::|:|!)\s<ret> z i<tab> } # cleanup trailing white space son previous line |
