diff --git a/rc/filetype/sh.kak b/rc/filetype/sh.kak index 0b518fdba..a48e6d29f 100644 --- a/rc/filetype/sh.kak +++ b/rc/filetype/sh.kak @@ -7,7 +7,7 @@ hook global WinSetOption filetype=sh %{ set-option window static_words %opt{sh_static_words} hook window ModeChange insert:.* -group sh-trim-indent sh-trim-indent - hook window InsertChar \n -group sh-indent maybe-sh-indent-on-new-line + hook window InsertChar \n -group sh-indent sh-indent-on-new-line hook -once -always window WinSetOption filetype=.* %{ remove-hooks window sh-.+ } } @@ -18,9 +18,6 @@ hook -group sh-highlight global WinSetOption filetype=sh %{ provide-module sh %[ -declare-option -docstring "attempt to automatically indent shell code. Defaults to no." \ - bool sh_auto_indent no - add-highlighter shared/sh regions add-highlighter shared/sh/code default-region group add-highlighter shared/sh/double_string region %{(? s \h+$ d }