Configure YASnippet
This commit is contained in:
11
snippets/c-mode/header-guard
Normal file
11
snippets/c-mode/header-guard
Normal file
@@ -0,0 +1,11 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: header-guard
|
||||
# binding: C-c C-k C-l
|
||||
# key: hdr
|
||||
# --
|
||||
#ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H}
|
||||
#define $1
|
||||
|
||||
$0
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user