Hello Auctex has a nice function called LaTeX-close-environment, which works as follows: I have
\begin{equation} ^(cursor) I run LaTeX-close-environment and obtain: \begin{equation} \end{equation} Now could I am looking for a similar functionality for say #+begin_comment ^(cursor) org--close-template and obtain: #+begin_comment #+end_comment Does anybody know about such a function? Regards Uwe Brauer