+snippets
This commit is contained in:
9
doom.d/snippets/csharp-mode/class ... { ... }
Normal file
9
doom.d/snippets/csharp-mode/class ... { ... }
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: class ... { ... }
|
||||
# key: class
|
||||
# --
|
||||
|
||||
${1:public} class ${2:Name}
|
||||
{
|
||||
$0
|
||||
}
|
||||
9
doom.d/snippets/csharp-mode/foreach
Normal file
9
doom.d/snippets/csharp-mode/foreach
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: Foreach loop
|
||||
# key: foreach
|
||||
# condition: t
|
||||
# --
|
||||
foreach (${1:var} ${2:i} in ${3:collection})
|
||||
{
|
||||
$0
|
||||
}
|
||||
8
doom.d/snippets/csharp-mode/method
Normal file
8
doom.d/snippets/csharp-mode/method
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: public void Method { ... }
|
||||
# key: method
|
||||
# --
|
||||
${1:public} ${2:void} ${3:Method}(${4:int x})
|
||||
{
|
||||
${0:return x;}
|
||||
}
|
||||
6
doom.d/snippets/csharp-mode/params
Normal file
6
doom.d/snippets/csharp-mode/params
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: /// <param>...</param>
|
||||
# key: comment
|
||||
# --
|
||||
|
||||
/// <param name="$1">$0</param>
|
||||
5
doom.d/snippets/csharp-mode/returns
Normal file
5
doom.d/snippets/csharp-mode/returns
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: /// <returns>...</returns>
|
||||
# key: comment
|
||||
# --
|
||||
/// <returns>$0</returns>
|
||||
5
doom.d/snippets/org-mode/author
Normal file
5
doom.d/snippets/org-mode/author
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: author
|
||||
# key: <au
|
||||
# --
|
||||
#+AUTHOR: $1
|
||||
5
doom.d/snippets/org-mode/date
Normal file
5
doom.d/snippets/org-mode/date
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: date
|
||||
# key: <da
|
||||
# --
|
||||
#+DATE: ${1:Year}:${2:month}:${3:day}
|
||||
5
doom.d/snippets/org-mode/description
Normal file
5
doom.d/snippets/org-mode/description
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: description
|
||||
# key: desc
|
||||
# --
|
||||
#+DESCRIPTION: ${1:description of your org-mode file}
|
||||
10
doom.d/snippets/org-mode/img
Normal file
10
doom.d/snippets/org-mode/img
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: img
|
||||
# key: img_
|
||||
# --
|
||||
<img src="$1"
|
||||
alt="$2" align="${3:left}"
|
||||
title="${4:image title}"
|
||||
class="img"
|
||||
</img>
|
||||
$0
|
||||
5
doom.d/snippets/org-mode/include
Normal file
5
doom.d/snippets/org-mode/include
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: include
|
||||
# key: <i
|
||||
# --
|
||||
#+INCLUDE: $1
|
||||
5
doom.d/snippets/org-mode/title
Normal file
5
doom.d/snippets/org-mode/title
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: Title
|
||||
# key: <ti
|
||||
# --
|
||||
#+TITLE: ${1:What the hell}
|
||||
Reference in New Issue
Block a user