summaryrefslogtreecommitdiffstats
path: root/.emacs.d/etc/yasnippet/snippets/latex-mode
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2020-10-05 23:38:06 -0400
committerAmin Bandali <bandali@gnu.org>2020-10-05 23:38:06 -0400
commitd7dee82420a04e5c92e5b5ad316e14a49bd4d689 (patch)
tree9dceac59e3b0d40b0357e8854e191ac5559d41ab /.emacs.d/etc/yasnippet/snippets/latex-mode
parent927b50b7aec2da105bd5125dec272a89e38663c3 (diff)
downloadconfigs-d7dee82420a04e5c92e5b5ad316e14a49bd4d689.tar.gz
configs-d7dee82420a04e5c92e5b5ad316e14a49bd4d689.tar.xz
configs-d7dee82420a04e5c92e5b5ad316e14a49bd4d689.zip
Move GNU Emacs configs from ./ into .emacs.d/
I will be using the repository to store my configurations for other non-Emacs pieces of software. The repository itself will be located at ~/ rather than ~/.emacs.d/.
Diffstat (limited to '.emacs.d/etc/yasnippet/snippets/latex-mode')
-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
16 files changed, 90 insertions, 0 deletions
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