When inserting the environment equation
(by C-c C-e equation
) in latex-mode, emacs shows a prompt to insert a label. It is desirable to have the same prompt for a theorem-style environment like lem
defined in the document. When I do C-c C-e lem
, the environment lem
is correctly inserted, but a prompt for setting the label does not appear.
What is the procedure in order to have this prompt?
\documentclass{article}
\usepackage{amsmath,amsthm}
\newtheorem{thm}{Theorem}
\newtheorem{lem}[thm]{Lemma}
\begin{document}
\begin{lem}
\end{lem}
\begin{equation}
\label{eq:1}
\end{equation}
\end{document}