diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-06-16 20:42:12 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-06-16 20:42:12 +0100 |
| commit | b8a205b858dbed727a1722e60219340bec9263ef (patch) | |
| tree | 03f1843d3443fb1996f152bfd12b289d67dc6e42 /rc/cpp.kak | |
| parent | fc6a16a571f6f5f67350c859785e4a0269168cb6 (diff) | |
Use -group rather than -id in hooks to mirror highlighters closer
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).* %{ |
