Fix my issues in gluon.kak

This commit is contained in:
John Isom 2020-07-29 21:17:58 -06:00
parent 6c02f80935
commit cc30131e16

View File

@ -78,8 +78,8 @@ define-command -hidden gluon-trim-indent %{
try %{ execute-keys -draft -itersel <a-x> s \h+$ <ret> d } try %{ execute-keys -draft -itersel <a-x> s \h+$ <ret> d }
} }
define-command -hidden gluon-indent-on-new-line %< define-command -hidden gluon-indent-on-new-line %~
evaluate-commands -draft -itersel %< evaluate-commands -draft -itersel %_
# copy // and /// comments prefix and following white spaces # copy // and /// comments prefix and following white spaces
try %{ execute-keys -draft k <a-x> s ^\h*\K///?\h* <ret> y gh j P } try %{ execute-keys -draft k <a-x> s ^\h*\K///?\h* <ret> y gh j P }
# preserve previous line indent # preserve previous line indent
@ -90,8 +90,8 @@ define-command -hidden gluon-indent-on-new-line %<
# or in # or in
try %{ execute-keys -draft \; k x <a-k> (\(|\{|\[|=|->|then|else|rec|in)$ <ret> j <a-gt> } try %{ execute-keys -draft \; k x <a-k> (\(|\{|\[|=|->|then|else|rec|in)$ <ret> j <a-gt> }
# deindent closing brace(s) when after cursor # deindent closing brace(s) when after cursor
try %{ execute-keys -draft <a-x> <a-k> ^\h*[})\]] <ret> gh / [})\]] <ret> m <a-S> 1<a-&> } try %< execute-keys -draft <a-x> <a-k> ^\h*[})\]] <ret> gh / \})\]] <ret> m <a-S> 1<a-&> >
> _
> ~
§ §