From 2b3c93ec75a0c69ba421bd11260cd46cac70b536 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Tue, 27 Aug 2019 00:46:57 -0400 Subject: emacs: yasnippet: add some convenience snippets for latex-mode --- .emacs.d/etc/yasnippet/snippets/latex-mode/newcommand | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .emacs.d/etc/yasnippet/snippets/latex-mode/newcommand (limited to '.emacs.d/etc/yasnippet/snippets/latex-mode/newcommand') diff --git a/.emacs.d/etc/yasnippet/snippets/latex-mode/newcommand b/.emacs.d/etc/yasnippet/snippets/latex-mode/newcommand new file mode 100644 index 0000000..e9e03ca --- /dev/null +++ b/.emacs.d/etc/yasnippet/snippets/latex-mode/newcommand @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: newcommand +# key: cmd +# -- +\newcommand{\\${1:name}}${2:[${3:0}]}{$0} \ No newline at end of file -- cgit v1.2.3-60-g2f50