diff --git a/src/rc/cpp.kak b/src/rc/cpp.kak index 12ecaac3..1411c539 100644 --- a/src/rc/cpp.kak +++ b/src/rc/cpp.kak @@ -11,3 +11,6 @@ hook global WinCreate .*\.(c|cc|cpp|cxx|C|h|hh|hpp|hxx|H) \ addfilter cleanup_whitespaces; \ hook window InsertEnd .* exec xs\h+(?=\n)d +hook global BufCreate .*\.(h|hh|hpp|hxx|H) \ + exec ggi%ggxs\.c_A_INCLUDEDxyppI#ifndefjI#definejI#endif//O +