Fix my issues in gluon.kak
This commit is contained in:
parent
d77fe33e9a
commit
e02a3711fa
|
@ -31,7 +31,7 @@ hook -group gluon-highlight global WinSetOption filetype=gluon %{
|
|||
}
|
||||
|
||||
|
||||
provide-module gluon %[
|
||||
provide-module gluon %§
|
||||
|
||||
# Highlighters
|
||||
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
||||
|
@ -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
|
||||
|
@ -91,7 +91,7 @@ define-command -hidden gluon-indent-on-new-line %{
|
|||
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-&> }
|
||||
}
|
||||
}
|
||||
>
|
||||
>
|
||||
|
||||
]
|
||||
§
|
||||
|
|
Loading…
Reference in New Issue
Block a user