Add C file templates
This commit is contained in:
parent
482e70f32f
commit
fb7efbcadc
2 changed files with 14 additions and 0 deletions
14
private/templates/c-mode/@@.c
Normal file
14
private/templates/c-mode/@@.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
# -*- mode: snippet -*-
|
||||
# group: file templates
|
||||
# contributor: Henrik Lissner
|
||||
# --
|
||||
/**
|
||||
* @file
|
||||
* @author `user-full-name` <`user-mail-address`>
|
||||
* @version 0.1
|
||||
* @since 0.1 @ `(format-time-string "%Y-%m-%d")`
|
||||
*/
|
||||
|
||||
#include "`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`.h"
|
||||
|
||||
$0
|
10
private/templates/c-mode/@@.h
Normal file
10
private/templates/c-mode/@@.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
# -*- mode: snippet -*-
|
||||
# group: file templates
|
||||
# contributor: Henrik Lissner
|
||||
# --
|
||||
#ifndef ${1:__`(upcase (f-base buffer-file-name))`_H_$(upcase yas-text)}
|
||||
#define $1
|
||||
|
||||
$0
|
||||
|
||||
#endif // $1
|
Loading…
Add table
Add a link
Reference in a new issue