Add new snippets for latex
This commit is contained in:
parent
4a931cac5f
commit
00466a956a
3 changed files with 22 additions and 0 deletions
7
emacs/.emacs.d/snippets/latex-mode/env
Normal file
7
emacs/.emacs.d/snippets/latex-mode/env
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: Environment
|
||||
# key: begin
|
||||
# --
|
||||
\begin{$1}
|
||||
$0
|
||||
\end{$1}
|
7
emacs/.emacs.d/snippets/latex-mode/section
Normal file
7
emacs/.emacs.d/snippets/latex-mode/section
Normal file
|
@ -0,0 +1,7 @@
|
|||
# key: sec
|
||||
# name: section
|
||||
# --
|
||||
\section{$1}
|
||||
\label{sec:$2}
|
||||
|
||||
$0
|
8
emacs/.emacs.d/snippets/latex-mode/subsection
Normal file
8
emacs/.emacs.d/snippets/latex-mode/subsection
Normal file
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: subsection
|
||||
# key: sub
|
||||
# --
|
||||
\subsection{$1}
|
||||
\label{sub:$2}
|
||||
|
||||
$0
|
Loading…
Reference in a new issue