mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
Add rest of file templates
This commit is contained in:
16
private/templates/c++-mode/@@.cpp
Normal file
16
private/templates/c++-mode/@@.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
# -*- mode: snippet -*-
|
||||
# group: file templates
|
||||
# contributor: Henrik Lissner
|
||||
# --
|
||||
/**
|
||||
* @file
|
||||
* @author `user-full-name` <`user-mail-address`>
|
||||
* @version ${1:0.1}
|
||||
* @since $1 @ `(format-time-string "%Y-%m-%d")`
|
||||
*
|
||||
* @section DESCRIPTION
|
||||
*
|
||||
* ${2:Some description of this file}
|
||||
*/
|
||||
|
||||
$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
|
25
private/templates/c++-mode/@@main.cpp
Normal file
25
private/templates/c++-mode/@@main.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
# -*- mode: snippet -*-
|
||||
# group: file templates
|
||||
# contributor: Henrik Lissner
|
||||
# --
|
||||
/**
|
||||
* @file
|
||||
* @author `user-full-name` <`user-mail-address`>
|
||||
* @version ${1:0.1}
|
||||
*
|
||||
* @section DESCRIPTION
|
||||
*
|
||||
* ${2:Some description of this file}
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
$0
|
||||
|
||||
return 0;
|
||||
}
|
23
private/templates/c++-mode/@@winmain.cpp
Normal file
23
private/templates/c++-mode/@@winmain.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
# -*- mode: snippet -*-
|
||||
# group: file templates
|
||||
# contributor: Henrik Lissner
|
||||
# --
|
||||
/**
|
||||
* @file
|
||||
* @author `user-full-name` <`user-mail-address`>
|
||||
* @version ${1:0.1}
|
||||
* @since $1 @ `(format-time-string "%Y-%m-%d")`
|
||||
*
|
||||
* @section DESCRIPTION
|
||||
*
|
||||
* ${2:Some description of this file}
|
||||
*/
|
||||
|
||||
#include <Windows.h>
|
||||
|
||||
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
|
||||
{
|
||||
$0
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user