aboutsummaryrefslogtreecommitdiff
path: root/Doom/.doom.d/snippets
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-04-24 02:53:57 +0100
committerdx <aryadevchavali1@gmail.com>2020-05-05 02:59:45 +0100
commitc65cf688fca3075f9d194e1ca8b954f9ddfd983c (patch)
treecd53b6d49505cf06c080d45f729f4eb9845c306c /Doom/.doom.d/snippets
parente3e4bd9710f2d144ef4fecebebe69d8cc852ed94 (diff)
downloaddotfiles-c65cf688fca3075f9d194e1ca8b954f9ddfd983c.tar.gz
dotfiles-c65cf688fca3075f9d194e1ca8b954f9ddfd983c.tar.bz2
dotfiles-c65cf688fca3075f9d194e1ca8b954f9ddfd983c.zip
~doom.d -> Doom/.doom.d
Proper naming, GNU/Stow style.
Diffstat (limited to 'Doom/.doom.d/snippets')
-rw-r--r--Doom/.doom.d/snippets/csharp-mode/class ... { ... }9
-rw-r--r--Doom/.doom.d/snippets/csharp-mode/foreach9
-rw-r--r--Doom/.doom.d/snippets/csharp-mode/method8
-rw-r--r--Doom/.doom.d/snippets/csharp-mode/params6
-rw-r--r--Doom/.doom.d/snippets/csharp-mode/prop6
-rw-r--r--Doom/.doom.d/snippets/csharp-mode/returns5
-rw-r--r--Doom/.doom.d/snippets/org-mode/author5
-rw-r--r--Doom/.doom.d/snippets/org-mode/date5
-rw-r--r--Doom/.doom.d/snippets/org-mode/description5
-rw-r--r--Doom/.doom.d/snippets/org-mode/img10
-rw-r--r--Doom/.doom.d/snippets/org-mode/include5
-rw-r--r--Doom/.doom.d/snippets/org-mode/review14
-rw-r--r--Doom/.doom.d/snippets/org-mode/title5
-rw-r--r--Doom/.doom.d/snippets/web-mode/New component19
14 files changed, 111 insertions, 0 deletions
diff --git a/Doom/.doom.d/snippets/csharp-mode/class ... { ... } b/Doom/.doom.d/snippets/csharp-mode/class ... { ... }
new file mode 100644
index 0000000..5e96938
--- /dev/null
+++ b/Doom/.doom.d/snippets/csharp-mode/class ... { ... }
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: class ... { ... }
+# key: class
+# --
+
+${1:public} class ${2:Name}
+{
+ $0
+}
diff --git a/Doom/.doom.d/snippets/csharp-mode/foreach b/Doom/.doom.d/snippets/csharp-mode/foreach
new file mode 100644
index 0000000..220fcd9
--- /dev/null
+++ b/Doom/.doom.d/snippets/csharp-mode/foreach
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: Foreach loop
+# key: foreach
+# condition: t
+# --
+foreach (${1:var} ${2:i} in ${3:collection})
+{
+ $0
+}
diff --git a/Doom/.doom.d/snippets/csharp-mode/method b/Doom/.doom.d/snippets/csharp-mode/method
new file mode 100644
index 0000000..a2aaf6b
--- /dev/null
+++ b/Doom/.doom.d/snippets/csharp-mode/method
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: public void Method { ... }
+# key: method
+# --
+${1:public} ${2:void} ${3:Method}(${4:int x})
+{
+ ${0:return x;}
+}
diff --git a/Doom/.doom.d/snippets/csharp-mode/params b/Doom/.doom.d/snippets/csharp-mode/params
new file mode 100644
index 0000000..b781710
--- /dev/null
+++ b/Doom/.doom.d/snippets/csharp-mode/params
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: /// <param>...</param>
+# key: comment
+# --
+
+/// <param name="$1">$0</param> \ No newline at end of file
diff --git a/Doom/.doom.d/snippets/csharp-mode/prop b/Doom/.doom.d/snippets/csharp-mode/prop
new file mode 100644
index 0000000..eb2969e
--- /dev/null
+++ b/Doom/.doom.d/snippets/csharp-mode/prop
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: property ... ... { ... }
+# key: prop
+# condition: t
+# --
+public ${1:int} ${2:property} { get; set; }$0 \ No newline at end of file
diff --git a/Doom/.doom.d/snippets/csharp-mode/returns b/Doom/.doom.d/snippets/csharp-mode/returns
new file mode 100644
index 0000000..dee5e8d
--- /dev/null
+++ b/Doom/.doom.d/snippets/csharp-mode/returns
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: /// <returns>...</returns>
+# key: comment
+# --
+/// <returns>$0</returns> \ No newline at end of file
diff --git a/Doom/.doom.d/snippets/org-mode/author b/Doom/.doom.d/snippets/org-mode/author
new file mode 100644
index 0000000..3da977e
--- /dev/null
+++ b/Doom/.doom.d/snippets/org-mode/author
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: author
+# key: <au
+# --
+#+AUTHOR: $1 \ No newline at end of file
diff --git a/Doom/.doom.d/snippets/org-mode/date b/Doom/.doom.d/snippets/org-mode/date
new file mode 100644
index 0000000..37fa30d
--- /dev/null
+++ b/Doom/.doom.d/snippets/org-mode/date
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: date
+# key: <da
+# --
+#+DATE: ${1:Year}:${2:month}:${3:day} \ No newline at end of file
diff --git a/Doom/.doom.d/snippets/org-mode/description b/Doom/.doom.d/snippets/org-mode/description
new file mode 100644
index 0000000..c880c80
--- /dev/null
+++ b/Doom/.doom.d/snippets/org-mode/description
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: description
+# key: desc
+# --
+#+DESCRIPTION: ${1:description of your org-mode file} \ No newline at end of file
diff --git a/Doom/.doom.d/snippets/org-mode/img b/Doom/.doom.d/snippets/org-mode/img
new file mode 100644
index 0000000..9da54ba
--- /dev/null
+++ b/Doom/.doom.d/snippets/org-mode/img
@@ -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 \ No newline at end of file
diff --git a/Doom/.doom.d/snippets/org-mode/include b/Doom/.doom.d/snippets/org-mode/include
new file mode 100644
index 0000000..4938877
--- /dev/null
+++ b/Doom/.doom.d/snippets/org-mode/include
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: include
+# key: <i
+# --
+#+INCLUDE: $1 \ No newline at end of file
diff --git a/Doom/.doom.d/snippets/org-mode/review b/Doom/.doom.d/snippets/org-mode/review
new file mode 100644
index 0000000..c8143df
--- /dev/null
+++ b/Doom/.doom.d/snippets/org-mode/review
@@ -0,0 +1,14 @@
+# -*- mode: snippet -*-
+# name: Review template
+# key: REVIEW
+# --
+
+#+TITLE: $1
+
+* Short description
+$0
+* Where and when did I hear about $1?
+* What did I like about $1?
+* What did I dislike about $1?
+* Conclusion
+* Rating
diff --git a/Doom/.doom.d/snippets/org-mode/title b/Doom/.doom.d/snippets/org-mode/title
new file mode 100644
index 0000000..30d763a
--- /dev/null
+++ b/Doom/.doom.d/snippets/org-mode/title
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: Title
+# key: <ti
+# --
+#+TITLE: ${1:What the hell}
diff --git a/Doom/.doom.d/snippets/web-mode/New component b/Doom/.doom.d/snippets/web-mode/New component
new file mode 100644
index 0000000..6f71f94
--- /dev/null
+++ b/Doom/.doom.d/snippets/web-mode/New component
@@ -0,0 +1,19 @@
+# -*- mode: snippet -*-
+# name: New component
+# key: rce
+# --
+
+import React, { Component } from 'react';
+
+class $1 extends Component {
+ state = {};
+ render() {
+ return (
+ <div>
+ $0
+ </div>
+ )
+ }
+}
+
+export default $1 \ No newline at end of file