diff options
Diffstat (limited to 'rc/cpp.kak')
| -rw-r--r-- | rc/cpp.kak | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -57,11 +57,11 @@ hook global WinSetOption filetype=cpp %[ addhl ref cpp # cleanup trailing whitespaces when exiting insert mode - hook window InsertEnd .* -id cpp-hooks %{ try %{ exec -draft <a-x>s\h+$<ret>d } } + hook window InsertEnd .* -group cpp-hooks %{ try %{ exec -draft <a-x>s\h+$<ret>d } } - hook window InsertChar \n -id cpp-indent _cpp_indent_on_new_line - hook window InsertChar \{ -id cpp-indent _cpp_indent_on_opening_curly_brace - hook window InsertChar \} -id cpp-indent _cpp_indent_on_closing_curly_brace + hook window InsertChar \n -group cpp-indent _cpp_indent_on_new_line + hook window InsertChar \{ -group cpp-indent _cpp_indent_on_opening_curly_brace + hook window InsertChar \} -group cpp-indent _cpp_indent_on_closing_curly_brace ] hook global WinSetOption filetype=(?!cpp).* %{ |
