From 8676c0e62a08264cb5a8de7a74b71fc6a03cf65b Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Wed, 29 Jan 2020 18:40:49 -0500 Subject: emacs: yasnippet: add some more convenience snippets for latex-mode --- .emacs.d/etc/yasnippet/snippets/latex-mode/eg | 5 +++++ .emacs.d/etc/yasnippet/snippets/latex-mode/etc | 5 +++++ .emacs.d/etc/yasnippet/snippets/latex-mode/ie | 5 +++++ .emacs.d/etc/yasnippet/snippets/latex-mode/ref | 5 +++++ .emacs.d/etc/yasnippet/snippets/latex-mode/texttt | 5 +++++ 5 files changed, 25 insertions(+) create mode 100644 .emacs.d/etc/yasnippet/snippets/latex-mode/eg create mode 100644 .emacs.d/etc/yasnippet/snippets/latex-mode/etc create mode 100644 .emacs.d/etc/yasnippet/snippets/latex-mode/ie create mode 100644 .emacs.d/etc/yasnippet/snippets/latex-mode/ref create mode 100644 .emacs.d/etc/yasnippet/snippets/latex-mode/texttt 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/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/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/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 -- cgit v1.2.3-60-g2f50