diff options
author | Amin Bandali <bandali@gnu.org> | 2019-09-03 12:07:06 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2019-09-03 12:07:06 -0400 |
commit | 3457307b74d15e7ced6ff00e1ae91166d2537cdb (patch) | |
tree | 43bbb806406253c55882d7853d9955726679c5fa /.emacs.d/etc/yasnippet/snippets | |
parent | 9cfb34225b76c7b9eaa92199a17141d54d76b75b (diff) | |
download | configs-3457307b74d15e7ced6ff00e1ae91166d2537cdb.tar.gz configs-3457307b74d15e7ced6ff00e1ae91166d2537cdb.tar.xz configs-3457307b74d15e7ced6ff00e1ae91166d2537cdb.zip |
emacs: improve tex-mode list workflows
type āoā followed by space for enumerate (ordered list), and āuā
folloewd by space for itemize (unordered list); insert new \item with
M-RET
Diffstat (limited to '')
4 files changed, 4 insertions, 15 deletions
diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/enumerate b/.emacs.d/etc/yasnippet/snippets/latex-mode/enumerate index df51892..bcb1df1 100644 --- a/.emacs.d/etc/yasnippet/snippets/latex-mode/enumerate +++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/enumerate @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: enumerate -# key: ol +# key: o # -- \begin{enumerate} -$0 +\item $0 \end{enumerate}
\ No newline at end of file diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/item b/.emacs.d/etc/yasnippet/snippets/latex-mode/item deleted file mode 100644 index d4773f5..0000000 --- a/.emacs.d/etc/yasnippet/snippets/latex-mode/item +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: item -# key: - -# -- -\item $0
\ No newline at end of file diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/item-li b/.emacs.d/etc/yasnippet/snippets/latex-mode/item-li deleted file mode 100644 index 1bc93b5..0000000 --- a/.emacs.d/etc/yasnippet/snippets/latex-mode/item-li +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: item-li -# key: li -# type: command -# -- -(yas-expand-snippet (yas-lookup-snippet "item"))
\ 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 index eb97984..b7a6949 100644 --- a/.emacs.d/etc/yasnippet/snippets/latex-mode/itemize +++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/itemize @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: itemize -# key: ul +# key: u # -- \begin{itemize} -$0 +\item $0 \end{itemize}
\ No newline at end of file |