From 3974264bd6b175428f253119df299b0ba98d8d91 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 10 Oct 2015 14:21:10 -0400 Subject: [PATCH] Add yasnippet snippets for latex - f1 adds a frac 1/ something - prob adds a section and align* --- .emacs.d/snippets/latex-mode/f1 | 5 +++++ .emacs.d/snippets/latex-mode/problem | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 .emacs.d/snippets/latex-mode/f1 create mode 100644 .emacs.d/snippets/latex-mode/problem diff --git a/.emacs.d/snippets/latex-mode/f1 b/.emacs.d/snippets/latex-mode/f1 new file mode 100644 index 0000000..082168a --- /dev/null +++ b/.emacs.d/snippets/latex-mode/f1 @@ -0,0 +1,5 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: frac1 +# key: f1 +# -- +\frac{1}{$1}$0 \ No newline at end of file diff --git a/.emacs.d/snippets/latex-mode/problem b/.emacs.d/snippets/latex-mode/problem new file mode 100644 index 0000000..673dc5b --- /dev/null +++ b/.emacs.d/snippets/latex-mode/problem @@ -0,0 +1,8 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: problem +# key: prob +# -- +\sub$1section{} +\begin{align*} + $0 +\end{align*} \ No newline at end of file