diff --git a/rc/filetype/eruby.kak b/rc/filetype/eruby.kak index cc82c08b..273fa074 100644 --- a/rc/filetype/eruby.kak +++ b/rc/filetype/eruby.kak @@ -8,10 +8,10 @@ hook global BufCreate '.*\.erb' %{ hook global WinSetOption filetype=eruby %{ require-module eruby add-highlighter window/eruby ref eruby - hook -group eruby window InsertChar '\n' html-indent-on-new-line + hook -group eruby-indent window InsertChar '\n' html-indent-on-new-line hook -always -once window WinSetOption filetype=.* %{ remove-highlighter window/eruby - remove-hooks window eruby + remove-hooks window eruby-.+ } }