diff --git a/.emacs.d/snippets/c++-mode/guard b/.emacs.d/snippets/c++-mode/guard index dcd827e..b8e1106 100644 --- a/.emacs.d/snippets/c++-mode/guard +++ b/.emacs.d/snippets/c++-mode/guard @@ -3,8 +3,8 @@ # key: grd # -- #ifndef ${1:GUARD}_H -#define ${1:GUARD}_H +#define ${1:$(yas-c++-class-name yas-text)}_H $0 -#endif // ${1:GUARD}_H \ No newline at end of file +#endif // ${1:$(yas-c++-class-name yas-text)}_H