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}