From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: Restore old easy template feature (Re: function for inserting a block) Date: Tue, 19 Dec 2017 12:49:39 -0500 Message-ID: References: <877exghblx.fsf@ericabrahamsen.net> <87fuaiz069.fsf@nicolasgoaziou.fr> <87lgk9eo4d.fsf@ericabrahamsen.net> <87fuahxxvs.fsf@nicolasgoaziou.fr> <87r2u1cuwj.fsf@ericabrahamsen.net> <87infdctzq.fsf@ericabrahamsen.net> <87k1zsbizs.fsf@ericabrahamsen.net> <87k1zp4rxj.fsf@ericabrahamsen.net> <871slx4j6p.fsf@ericabrahamsen.net> <87376btslq.fsf@nicolasgoaziou.fr> <87vaj7oyxb.fsf@ericabrahamsen.net> <871sl9ow44.fsf@gnu.org> <87fu9pgfkj.fsf@nicolasgoaziou.fr> <87tvy5nf0q.fsf@gnu.org> <87k1z07thl.fsf@bzg.fr> <87vah3t4o7.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e082da0f0534b640560b517d4" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRM1O-0004Y3-UO for emacs-orgmode@gnu.org; Tue, 19 Dec 2017 12:49:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRM1N-00042P-NH for emacs-orgmode@gnu.org; Tue, 19 Dec 2017 12:49:42 -0500 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:42371) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRM1N-000417-EM for emacs-orgmode@gnu.org; Tue, 19 Dec 2017 12:49:41 -0500 Received: by mail-pf0-x236.google.com with SMTP id d23so11422541pfe.9 for ; Tue, 19 Dec 2017 09:49:41 -0800 (PST) In-Reply-To: <87vah3t4o7.fsf@gmx.us> 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" To: Rasmus Cc: Org Mode --089e082da0f0534b640560b517d4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Dec 19, 2017 at 5:04 AM, Rasmus wrote: > Matt Price writes: > > > On Wed, Nov 8, 2017 at 9:08 AM, Bastien Guerry wrote: > > > >> Hi Kaushal, > >> > >> Kaushal Modi writes: > >> > >> > I am suggesting to have a minor mode that simply binds "<" to do the > >> > template insertion (only when that is typed at BOL with optional > >> > leading whitespace, or if a region is selected). > >> > >> I think this is a great suggestion and brings the best of both the new > >> and the old system. > >> > >> I cannot test this myself until this week-end, but I'd happy too then. > >> > > > > I guess I missed this ocnversation while I was busy wiht other stuff -= - > > the old easy templating has been removed? I am certainly very sorry to > see > > it go, esp. as I have found yasnippet to work only intermittently in > > org-mode buffers (at least for me). I see Kaushal has added it back i= n > > his config files, but if someone has a slightly less specialized soluti= on > > for restoring it I would love to see it. > > > > I see Nicolas's point that this functionality exists elsewhere, but may= be > > someone can point to a ready-made replacement for those of us who rely = on > > > (require =E2=80=99org-tempo) > > At the moment you can only use one character after the "<" > cf. =E2=80=98org-structure-template-alist=E2=80=99. Perhaps this will ch= ange in the > future. > > ah ok, thank you both for the clarification, this helps a lot. m --089e082da0f0534b640560b517d4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Dec 19, 2017 at 5:04 AM, Rasmus <rasmus@gmx.us> wr= ote:
Matt Price <moptop99@gmail.com> writes:

> On Wed, Nov 8, 2017 at 9:08 AM, Bastien Guerry <bzg@gnu.org> wrote:
>
>> Hi Kaushal,
>>
>> Kaushal Modi <kaushal= .modi@gmail.com> writes:
>>
>> > I am suggesting to have a minor mode that simply binds "= <" to do the
>> > template insertion (only when that is typed at BOL with optio= nal
>> > leading whitespace, or if a region is selected).
>>
>> I think this is a great suggestion and brings the best of both the= new
>> and the old system.
>>
>> I cannot test this myself until this week-end, but I'd happy t= oo then.
>>
>
> I guess I missed this ocnversation while I was busy wiht other stuff= =C2=A0 --
> the old easy templating has been removed? I am certainly very sorry to= see
> it go, esp. as I have found yasnippet to work only intermittently in > org-mode buffers (at least for me).=C2=A0 =C2=A0I see Kaushal has adde= d it back in
> his config files, but if someone has a slightly less specialized solut= ion
> for restoring it I would love to see it.
>
> I see Nicolas's point that this functionality exists elsewhere, bu= t maybe
> someone can point to a ready-made replacement for those of us who rely= on
> <s, etc., as part of our daily workflow?

(require =E2=80=99org-tempo)

At the moment you can only use one character after the "<"
cf. =E2=80=98org-structure-template-alist=E2=80=99.=C2=A0 Perhaps this= will change in the
future.

ah ok, thank you both for the clarification, this helps a lot.=C2= =A0

m
--089e082da0f0534b640560b517d4--