From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Will O'Brien" Subject: Re: LaTeX-close-environment: org-close-template Date: Wed, 9 Dec 2015 20:33:34 +0000 Message-ID: References: <87si3dkz4h.fsf@mat.ucm.es> <87oae1ey70.fsf@delle7240.chemeng.ucl.ac.uk> <87k2oolvn3.fsf@mat.ucm.es> <8737vckpq3.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114b0e021d9eca05267d014c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6lQf-000822-15 for emacs-orgmode@gnu.org; Wed, 09 Dec 2015 15:33:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6lQe-0003nF-3u for emacs-orgmode@gnu.org; Wed, 09 Dec 2015 15:33:36 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:36446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6lQd-0003mg-SI for emacs-orgmode@gnu.org; Wed, 09 Dec 2015 15:33:36 -0500 Received: by wmww144 with SMTP id w144so238744067wmw.1 for ; Wed, 09 Dec 2015 12:33:35 -0800 (PST) In-Reply-To: <8737vckpq3.fsf@ucl.ac.uk> 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 --001a114b0e021d9eca05267d014c Content-Type: text/plain; charset=UTF-8 On 9 Dec 2015 08:10, "Eric S Fraga" wrote: > > On Tuesday, 8 Dec 2015 at 17:04, Uwe Brauer wrote: > > I think the opposite, for example, another missing feature: if you mark > > a text and one to insert a template around it, say src, that does not > > work in org-mode, but for it works an environment in auctex. > > Yes, I do often find myself killing a bunch of lines, inserting the > template and then yanking the lines back. > It might be worth taking a look at something like yasnippet which provides both easy to insert templates and the wrap-around functionality you would like. It's very easy to write snippets which support both these use cases. Cheers, Will --001a114b0e021d9eca05267d014c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On 9 Dec 2015 08:10, "Eric S Fraga" <e.fraga@ucl.ac.uk> wrote:
>
> On Tuesday,=C2=A0 8 Dec 2015 at 17:04, Uwe Brauer wrote:

> > I think the opposite, for example, another missing= feature: if you mark
> > a text and one to insert a template around it, say src, that does= not
> > work in org-mode, but for it works an environment in auctex.
>
> Yes, I do often find myself killing a bunch of lines, inserting the > template and then yanking the lines back.
>

It might be worth taking a look at something like yasnippet = which provides both easy to insert templates and the wrap-around functional= ity you would like. It's very easy to write snippets which support both= these use cases.

Cheers,

Will

--001a114b0e021d9eca05267d014c--