diff --git a/rc/base/d.kak b/rc/base/d.kak index a611d1ef..c8d523f0 100644 --- a/rc/base/d.kak +++ b/rc/base/d.kak @@ -128,5 +128,5 @@ hook global WinSetOption filetype=d %{ hook window InsertChar \{ -group d-indent d-indent-on-opening-curly-brace hook window InsertChar \} -group d-indent d-indent-on-closing-curly-brace - hook -once -always window WinSetOptionfiletype=(?!d).* %{ remove-hooks window d-.+ } + hook -once -always window WinSetOption filetype=(?!d).* %{ remove-hooks window d-.+ } } diff --git a/rc/extra/moon.kak b/rc/extra/moon.kak index e8e12b6c..ffcc24cf 100644 --- a/rc/extra/moon.kak +++ b/rc/extra/moon.kak @@ -100,7 +100,7 @@ hook global WinSetOption filetype=moon %{ alias window alt moon-alternative-file - hook global WinSetOption filetype=(?!moon).* %{ + hook -once -always window WinSetOption filetype=(?!moon).* %{ remove-hooks window moon-.+ unalias window alt moon-alternative-file }