From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: LaTeX-close-environment: org-close-template Date: Tue, 8 Dec 2015 15:50:59 +0000 Message-ID: <87oae1ey70.fsf@delle7240.chemeng.ucl.ac.uk> References: <87si3dkz4h.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Ke8-0001GV-Jq for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 10:57:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6Ke4-0004Cj-G6 for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 10:57:44 -0500 Received: from mail-am1on0143.outbound.protection.outlook.com ([157.56.112.143]:32358 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Ke4-0004C2-54 for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 10:57:40 -0500 In-Reply-To: <87si3dkz4h.fsf@mat.ucm.es> (Uwe Brauer's message of "Tue, 8 Dec 2015 10:34:22 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Tuesday, 8 Dec 2015 at 10:34, Uwe Brauer wrote: > 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? I don't. However, I find that using the easy templates (e.g. \n?\n") | ("e" "#+begin_example\n?\n#+end_example" "\n?\n") | ("h" "#+begin_html\n?\n#+end_html" "\n?\n") | ("H" "#+html: " "?") | ("i" "#+index: ?" "#+index: ?") | ("I" "#+include %file ?" "") | ("l" "#+begin_latex\n?\n#+end_latex" "\n?\n") | ("L" "#+latex: " "?") | ("q" "#+begin_quote\n?\n#+end_quote" "\n?\n") | ("s" "#+begin_src ?\n\n#+end_src" "\n\n") | ("v" "#+begin_verse\n?\n#+end_verse" "\n?\n") | ("w" "#+begin_whitebox\n?\n#+end_whitebox")) | | Original value was | (("s" "#+BEGIN_SRC ?\n\n#+END_SRC") | ("e" "#+BEGIN_EXAMPLE\n?\n#+END_EXAMPLE") | ("q" "#+BEGIN_QUOTE\n?\n#+END_QUOTE") | ("v" "#+BEGIN_VERSE\n?\n#+END_VERSE") | ("V" "#+BEGIN_VERBATIM\n?\n#+END_VERBATIM") | ("c" "#+BEGIN_CENTER\n?\n#+END_CENTER") | ("l" "#+BEGIN_LaTeX\n?\n#+END_LaTeX") | ("L" "#+LaTeX: ") | ("h" "#+BEGIN_HTML\n?\n#+END_HTML") | ("H" "#+HTML: ") | ("a" "#+BEGIN_ASCII\n?\n#+END_ASCII") | ("A" "#+ASCII: ") | ("i" "#+INDEX: ?") | ("I" "#+INCLUDE: %file ?")) `---- HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.5.1, Org release_8.3.2-379-g38fd09