mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-28 06:08:05 +03:00
insert include guards in C++ header files at creation
This commit is contained in:
parent
a783d06bf1
commit
d23a175533
@ -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)<ret>d
|
||||
|
||||
hook global BufCreate .*\.(h|hh|hpp|hxx|H) \
|
||||
exec ggi<c-r>%<ret><esc>ggxs\.<ret>c_<esc><space>A_INCLUDED<esc>xyppI#ifndef<space><esc>jI#define<space><esc>jI#endif<space>//<space><esc>O<esc>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user