From b2459f5ecbef3706c6a36c408453d5cacf31043f Mon Sep 17 00:00:00 2001 From: Simon Fowler Date: Sat, 29 Jun 2019 12:34:14 +1000 Subject: [PATCH] Remove the sh_auto_indent option. We now auto indent by default, with the option to disable it handled by the `diabled_hooks` mechanism. --- rc/filetype/sh.kak | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/rc/filetype/sh.kak b/rc/filetype/sh.kak index 0b518fdb..a48e6d29 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 }