Add feature/file-templates

This commit is contained in:
Henrik Lissner
2017-02-11 07:00:31 -05:00
parent 8c2b90b3af
commit 2df2c9298f
64 changed files with 1455 additions and 0 deletions

View 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

View 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

View File

@@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# group: file templates
# contributor: Henrik Lissner
# --
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
$0
return 0;
}

View File

@@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# group: file templates
# contributor: Henrik Lissner
# --
#include <Windows.h>
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
$0
return 0;
}