From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Restore old easy template feature (Re: function for inserting a block) Date: Wed, 08 Nov 2017 12:25:52 +0000 Message-ID: References: <877exghblx.fsf@ericabrahamsen.net> <87r2uoc4q7.fsf@ericabrahamsen.net> <87bmllk5xy.fsf@nicolasgoaziou.fr> <878tgmwwsa.fsf@ericabrahamsen.net> <87po9q2e8k.fsf@nicolasgoaziou.fr> <87tvyyvpst.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> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114d72668f7f30055d77ca4f" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCPQm-0008MA-Ko for emacs-orgmode@gnu.org; Wed, 08 Nov 2017 07:26:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCPQl-0005T6-8n for emacs-orgmode@gnu.org; Wed, 08 Nov 2017 07:26:08 -0500 In-Reply-To: <87tvy5nf0q.fsf@gnu.org> 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: Bastien Guerry Cc: Eric Abrahamsen , emacs-orgmode@gnu.org, Nicolas Goaziou --001a114d72668f7f30055d77ca4f Content-Type: text/plain; charset="UTF-8" On Wed, Nov 8, 2017, 7:16 AM Bastien wrote: > > is there a simple mechanism in Emacs core to restore the same > functionnality? > +1 I'm aware of Yasnippet, but it is not in Emacs core and it can > be daunting for newcomers to install, customize and use. > I am aware of Yasnippet, have it installed, but haven't used for a long time. The old easy template system just worked and I used it dozens of times a day. The previous function was very straightforward and simple, the > cost for losing it seems to high to me. I'd rather have 10 lines > in Org (and in Emacs core) for it, than to ask users to install > something that does a lot more that they don't need. > I agree with that sentiment. In parallel to removing that feature, it would be needed to add details in the manual on how to restore that functionality using other means. Given the lack of time, I just restored for works for me in my personal config: https://github.com/kaushalmodi/.emacs.d/commit/9aa3be89a2f8dce3f2aa57f98e0a2f38fdca4c6b I just like the convenience of hitting " -- Kaushal Modi --001a114d72668f7f30055d77ca4f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Nov 8, 2017, 7:16 AM Ba= stien <bzg@gnu.org> wrote:

is there a simple mechanism in Emacs core to restore the same
functionnality?

+1=C2=A0

I'= ;m aware of Yasnippet, but it is not in Emacs core and it can
be daunting for newcomers to install, customize and use.

I am aware of Yasnippet, have it installed, but hav= en't used for a long time. The old easy template system just worked and= I used it dozens of times a day.=C2=A0

The previous function was very straightforward and simple, the
cost for losing it seems to high to me.=C2=A0 I'd rather have 10 lines<= br> in Org (and in Emacs core) for it, than to ask users to install
something that does a lot more that they don't need.

I agree with that sentiment. In parallel to removin= g that feature, it would be needed to add details in the manual on how to r= estore that functionality using other means.=C2=A0

Given the lack of time, I just restored for works for me in my personal co= nfig:=C2=A0https://github.com/kaushalmodi/.emacs.d= /commit/9aa3be89a2f8dce3f2aa57f98e0a2f38fdca4c6b

I just like the convenience of hitting "<s" and let the tem= plate insertion logic do its thing.=C2=A0

Let me know what you think.=C2=A0
--

Kaushal Modi

--001a114d72668f7f30055d77ca4f--