summaryrefslogtreecommitdiffstats
path: root/.emacs.d/etc/yasnippet
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/etc/yasnippet')
-rw-r--r--.emacs.d/etc/yasnippet/snippets/java-mode/format5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/java-mode/new5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/java-mode/printf5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/java-mode/println5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/java-mode/return5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/cite5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/eg5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/emph5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/enumerate7
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/etal5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/etc5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/ie5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/itemize7
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/label5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/newcommand5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/ref5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/section8
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/subsection8
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/textbf5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/texttt5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/latex-mode/usepackage5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/log-edit-mode/thankgnu5
-rw-r--r--.emacs.d/etc/yasnippet/snippets/message-mode/thankgnu7
23 files changed, 127 insertions, 0 deletions
diff --git a/.emacs.d/etc/yasnippet/snippets/java-mode/format b/.emacs.d/etc/yasnippet/snippets/java-mode/format
new file mode 100644
index 0000000..7620366
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/java-mode/format
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: String.format
+# key: f
+# --
+String.format("$1${2:%n}");$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/java-mode/new b/.emacs.d/etc/yasnippet/snippets/java-mode/new
new file mode 100644
index 0000000..1ffd2e5
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/java-mode/new
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: new
+# key: new
+# --
+${1:Type} ${2:obj} = new ${3:Constr}(${4:args});$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/java-mode/printf b/.emacs.d/etc/yasnippet/snippets/java-mode/printf
new file mode 100644
index 0000000..1b8c277
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/java-mode/printf
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: printf
+# key: pf
+# --
+System.out.printf("$1${2:%n}"$3);$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/java-mode/println b/.emacs.d/etc/yasnippet/snippets/java-mode/println
new file mode 100644
index 0000000..7bb944c
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/java-mode/println
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: println
+# key: p
+# --
+System.out.println($1);$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/java-mode/return b/.emacs.d/etc/yasnippet/snippets/java-mode/return
new file mode 100644
index 0000000..977859e
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/java-mode/return
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: return
+# key: r
+# --
+return $1;$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/cite b/.emacs.d/etc/yasnippet/snippets/latex-mode/cite
new file mode 100644
index 0000000..3b4d161
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/cite
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: cite
+# key: c
+# --
+$1${2:~}\cite{${3:$$(unless yas-modified-p (mapconcat 'identity (reftex-citation 'dont-insert) ","))}}$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/eg b/.emacs.d/etc/yasnippet/snippets/latex-mode/eg
new file mode 100644
index 0000000..7c025e3
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/eg
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: eg
+# key: eg
+# --
+\emph{e.g.}$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/emph b/.emacs.d/etc/yasnippet/snippets/latex-mode/emph
new file mode 100644
index 0000000..36b19d7
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/emph
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: emph
+# key: e
+# --
+\emph{$1}$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/enumerate b/.emacs.d/etc/yasnippet/snippets/latex-mode/enumerate
new file mode 100644
index 0000000..bcb1df1
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/enumerate
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: enumerate
+# key: o
+# --
+\begin{enumerate}
+\item $0
+\end{enumerate} \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/etal b/.emacs.d/etc/yasnippet/snippets/latex-mode/etal
new file mode 100644
index 0000000..96e1fb0
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/etal
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: etal
+# key: etal
+# --
+\emph{et~al.}$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/etc b/.emacs.d/etc/yasnippet/snippets/latex-mode/etc
new file mode 100644
index 0000000..86b698e
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/etc
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: etc
+# key: etc
+# --
+\emph{etc.}$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/ie b/.emacs.d/etc/yasnippet/snippets/latex-mode/ie
new file mode 100644
index 0000000..cb91c2a
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/ie
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: ie
+# key: ie
+# --
+\emph{i.e.}$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/itemize b/.emacs.d/etc/yasnippet/snippets/latex-mode/itemize
new file mode 100644
index 0000000..b7a6949
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/itemize
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: itemize
+# key: u
+# --
+\begin{itemize}
+\item $0
+\end{itemize} \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/label b/.emacs.d/etc/yasnippet/snippets/latex-mode/label
new file mode 100644
index 0000000..8a98d7e
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/label
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: label
+# key: lbl
+# --
+\label{$0} \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/newcommand b/.emacs.d/etc/yasnippet/snippets/latex-mode/newcommand
new file mode 100644
index 0000000..e9e03ca
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/newcommand
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: newcommand
+# key: cmd
+# --
+\newcommand{\\${1:name}}${2:[${3:0}]}{$0} \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/ref b/.emacs.d/etc/yasnippet/snippets/latex-mode/ref
new file mode 100644
index 0000000..7eef596
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/ref
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: ref
+# key: r
+# --
+$1${2:~}\ref{${3:$$(unless yas-modified-p (reftex-reference nil nil))}}$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/section b/.emacs.d/etc/yasnippet/snippets/latex-mode/section
new file mode 100644
index 0000000..e1a2710
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/section
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: section
+# key: s
+# --
+\section{${1:name}}
+\label{sec:${2:label}}
+
+$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/subsection b/.emacs.d/etc/yasnippet/snippets/latex-mode/subsection
new file mode 100644
index 0000000..ddfa13d
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/subsection
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: subsection
+# key: ss
+# --
+\subsection{${1:name}}
+\label{sec:${2:label}}
+
+$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/textbf b/.emacs.d/etc/yasnippet/snippets/latex-mode/textbf
new file mode 100644
index 0000000..84171d7
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/textbf
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: textbf
+# key: b
+# --
+\textbf{$1}$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/texttt b/.emacs.d/etc/yasnippet/snippets/latex-mode/texttt
new file mode 100644
index 0000000..43cd769
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/texttt
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: texttt
+# key: tt
+# --
+\texttt{$1}$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/usepackage b/.emacs.d/etc/yasnippet/snippets/latex-mode/usepackage
new file mode 100644
index 0000000..3405077
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/usepackage
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: usepackage
+# key: p
+# --
+\usepackage{$0} \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/log-edit-mode/thankgnu b/.emacs.d/etc/yasnippet/snippets/log-edit-mode/thankgnu
new file mode 100644
index 0000000..bf29b63
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/log-edit-mode/thankgnu
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: thankgnu
+# key: th
+# --
+[RT#$1] Add ${2:$$(yas-choose-value '("Contributor" "Sustaining Contributor" "Patron"))} $3 to the 20${4:20} ThankGNUs list$0 \ No newline at end of file
diff --git a/.emacs.d/etc/yasnippet/snippets/message-mode/thankgnu b/.emacs.d/etc/yasnippet/snippets/message-mode/thankgnu
new file mode 100644
index 0000000..0d10448
--- /dev/null
+++ b/.emacs.d/etc/yasnippet/snippets/message-mode/thankgnu
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: thankgnu
+# key: th
+# --
+Added ${2:$$(yas-choose-value '("Contributor" "Sustaining Contributor" "Patron"))} $3 to 20${4:20}supporters.html.
+
+Moving to campaigns.$0