hook global BufCreate (.*/)?(kakrc|.*.kak) %{ setb filetype kak } hook global WinSetOption filetype=kak %{ addhl group kak-highlight addhl -group kak-highlight regex \<(hook|addhl|rmhl|addfilter|rmfilter|exec|source|runtime|def|echo|edit|set[gbw])\> 0:green,default addhl -group kak-highlight regex \<(default|black|red|green|yellow|blue|magenta|cyan|white)\> 0:yellow,default addhl -group kak-highlight regex (?<=\