1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-19 01:11:36 +03:00
kakoune/src/kakrc

14 lines
515 B
Plaintext
Raw Normal View History

hook WinCreate .*\.(c|cc|cpp|cxx|C|h|hh|hpp|hxx|H) \
addhl hlcpp; \
addfilter preserve_indent; \
addfilter cleanup_whitespaces
hook WinInsertEnd .* exec xs\h+(?=\n)<ret>d
hook WinCreate .* addhl regex \h+(?=\n) default red
hook WinCreate (.*/)?kakrc \
addhl group hlkakrc; \
addhl -group hlkakrc regex (hook|addhl|rmhl|addfilter|rmfilter|exec) green default; \
addhl -group hlkakrc regex (?<=hook)\h+\w+\h+\H+ magenta default; \
addhl -group hlkakrc regex (?<=hook)\h+\w+ cyan default