From bb2cb7fe583352778b1ebdb2b73b502d7f279e80 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 2 Mar 2019 13:50:54 -0500 Subject: [PATCH] Add inlinejs and mintjs snippets --- .emacs.d/snippets/latex-mode/inlinejs | 5 +++++ .emacs.d/snippets/latex-mode/mintjs | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .emacs.d/snippets/latex-mode/inlinejs create mode 100644 .emacs.d/snippets/latex-mode/mintjs diff --git a/.emacs.d/snippets/latex-mode/inlinejs b/.emacs.d/snippets/latex-mode/inlinejs new file mode 100644 index 0000000..79b82a2 --- /dev/null +++ b/.emacs.d/snippets/latex-mode/inlinejs @@ -0,0 +1,5 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: inlinejs +# key: ijs +# -- +\mintinline{js}{$0} \ No newline at end of file diff --git a/.emacs.d/snippets/latex-mode/mintjs b/.emacs.d/snippets/latex-mode/mintjs new file mode 100644 index 0000000..43fa3c3 --- /dev/null +++ b/.emacs.d/snippets/latex-mode/mintjs @@ -0,0 +1,10 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: mintjs +# key: mintjs +# -- +\begin{listing}[htbp] + \begin{minted}{js} + $0 + \end{minted} + \caption{$1}\label{lst:$2} +\end{listing}