emacs: fix include-guard template

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2024-11-09 22:15:26 +01:00
parent 941df7e990
commit 5b4f5567f2
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 2 additions and 0 deletions

View file

@ -124,6 +124,7 @@
"UNKNOWN"))
name)
"_H"
n "#define " name "_H"
n (tempel-retpoint-here) n "#endif // " name "_H" q
:post (tempel-retpoint-goto))
#+END_SRC

View file

@ -77,6 +77,7 @@ c-mode :condition (re-search-backward "^\\w*$" (line-beginning-position) 'noerro
"UNKNOWN"))
name)
"_H"
n "#define " name "_H"
n (tempel-retpoint-here) n "#endif // " name "_H" q
:post (tempel-retpoint-goto))