mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-25 10:32:19 +03:00
10 lines
273 B
Plaintext
10 lines
273 B
Plaintext
decl int autowrap_column 80
|
|
|
|
def autowrap-enable %{
|
|
hook -group autowrap window InsertChar [^\n] %{ try %{ exec -draft "<a-h><a-k>.{%opt{autowrap_column},}<ret><a-;>bi<ret><esc>xX<a-k>[^\n]+\n[^\n]<ret>kx;d" } }
|
|
}
|
|
|
|
def autowrap-disable %{
|
|
rmhooks window autowrap
|
|
}
|