Fix my issues in gluon.kak
This commit is contained in:
parent
6c02f80935
commit
cc30131e16
|
@ -78,8 +78,8 @@ define-command -hidden gluon-trim-indent %{
|
|||
try %{ execute-keys -draft -itersel <a-x> s \h+$ <ret> d }
|
||||
}
|
||||
|
||||
define-command -hidden gluon-indent-on-new-line %<
|
||||
evaluate-commands -draft -itersel %<
|
||||
define-command -hidden gluon-indent-on-new-line %~
|
||||
evaluate-commands -draft -itersel %_
|
||||
# copy // and /// comments prefix and following white spaces
|
||||
try %{ execute-keys -draft k <a-x> s ^\h*\K///?\h* <ret> y gh j P }
|
||||
# preserve previous line indent
|
||||
|
@ -90,8 +90,8 @@ define-command -hidden gluon-indent-on-new-line %<
|
|||
# or in
|
||||
try %{ execute-keys -draft \; k x <a-k> (\(|\{|\[|=|->|then|else|rec|in)$ <ret> j <a-gt> }
|
||||
# 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-&> >
|
||||
_
|
||||
~
|
||||
|
||||
§
|
||||
|
|
Loading…
Reference in New Issue
Block a user