Re: [O] Restore old easy template feature (Re: function for inserting a block)

2017-12-19 Thread Matt Price
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 w

Re: [O] Restore old easy template feature (Re: function for inserting a block)

2017-12-19 Thread Rasmus
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 i

Re: [O] Restore old easy template feature (Re: function for inserting a block)

2017-12-18 Thread Eric Abrahamsen
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

Re: [O] Restore old easy template feature (Re: function for inserting a block)

2017-12-18 Thread Matt Price
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

Re: [O] Restore old easy template feature (Re: function for inserting a block)

2017-11-08 Thread Bastien Guerry
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 an

Re: [O] Restore old easy template feature (Re: function for inserting a block)

2017-11-08 Thread Nicolas Goaziou
Hello, Kaushal Modi writes: > I just like the convenience of hitting " logic do its thing. > > Let me know what you think. There are many ways to get dumb template insertion. Org doesn't need to implement yet another one. Regards, -- Nicolas Goaziou

Re: [O] Restore old easy template feature (Re: function for inserting a block)

2017-11-08 Thread Kaushal Modi
On Wed, Nov 8, 2017, 7:27 AM Kaushal Modi wrote: > On Wed, Nov 8, 2017, 7:16 AM Bastien wrote: > >> >> is there a simple mechanism in Emacs core to restore the same >> functionnality? >> > > +1 > To clarify, I am not suggesting to blindly restore the old easy template system, and then have 2 se

[O] Restore old easy template feature (Re: function for inserting a block)

2017-11-08 Thread Kaushal Modi
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 inst