Redo c/c++ file templates
This commit is contained in:
parent
dc6ab10260
commit
08ef79fe90
3 changed files with 24 additions and 0 deletions
7
private/templates/c++-mode/__cpp
Normal file
7
private/templates/c++-mode/__cpp
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# group: file templates
|
||||
# contributor: Henrik Lissner
|
||||
# --
|
||||
#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
|
7
private/templates/c-mode/__c
Normal file
7
private/templates/c-mode/__c
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# group: file templates
|
||||
# contributor: Henrik Lissner
|
||||
# --
|
||||
#include "`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`.h"
|
||||
|
||||
$0
|
Loading…
Add table
Add a link
Reference in a new issue