feat: initial commit
This commit is contained in:
10
.emacs.snippets/c++-mode/once
Executable file
10
.emacs.snippets/c++-mode/once
Executable file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: #ifndef XXX; #define XXX; #endif
|
||||
# key: once
|
||||
# --
|
||||
#ifndef ${1:`(upcase (replace-regexp-in-string "\\." "_" (file-name-nondirectory (buffer-file-name))))`_}
|
||||
#define $1
|
||||
|
||||
$0
|
||||
|
||||
#endif // $1
|
||||
Reference in New Issue
Block a user