Re: [O] add blocks to org-structure-template-alist

2018-04-29 Thread Rasmus
Bastien writes: > Hi Nicolas, > > Nicolas Goaziou writes: > >> In master branch, the format has changed. > > With the new template mechanism, can we have rich templates like the > one Charles quotes? > > (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? > :type \n#+end_

Re: [O] add blocks to org-structure-template-alist

2018-04-28 Thread Charles Millar
Hi Bastien, On 04/28/2018 02:22 AM, Bastien wrote: Hi Charles, Charles Millar writes: It is not clear to me - is it possible to write my own, fairly simple template with a few modifications that are a result of some recent changes or, for example, are elements such as those in tempo-define-t

Re: [O] add blocks to org-structure-template-alist

2018-04-27 Thread Bastien
Hi Charles, Charles Millar writes: > It is not clear to me - is it possible to write my own, fairly simple > template with a few modifications that are a result of some recent > changes or, for example, are elements such as those in > tempo-define-template now required? you would need to use `t

Re: [O] add blocks to org-structure-template-alist

2018-04-27 Thread Bastien
Hi Nicolas and Eric, Nicolas Goaziou writes: > I don't know, but I would suggest to use Yasnippet or some other > specialized package for advanced templates like this one. Thanks. Eric Abrahamsen writes: > I think more complicated templating has gone into org-tempo.el, which > can be loaded

Re: [O] add blocks to org-structure-template-alist

2018-04-27 Thread Charles Millar
Hi, again, On 04/27/2018 07:09 PM, Bastien wrote: Hi Charles, Charles Millar writes: Is this correct of has the format changed? The format slightly changed, please check this option's docstring. Also see ORG-NEWS here, which I just updated: https://code.orgmode.org/bzg/org-mode/src/master

Re: [O] add blocks to org-structure-template-alist

2018-04-27 Thread Eric Abrahamsen
Bastien writes: > Hi Nicolas, > > Nicolas Goaziou writes: > >> In master branch, the format has changed. > > With the new template mechanism, can we have rich templates like the > one Charles quotes? > > (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? > :type \n#+end_

Re: [O] add blocks to org-structure-template-alist

2018-04-27 Thread Nicolas Goaziou
Hello, Bastien writes: > With the new template mechanism, can we have rich templates like the > one Charles quotes? > > (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? > :type \n#+end_src" "")) > > allowing cursor positioning, etc? > > If yes, what pointer can we add

Re: [O] add blocks to org-structure-template-alist

2018-04-27 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: > In master branch, the format has changed. With the new template mechanism, can we have rich templates like the one Charles quotes? (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? :type \n#+end_src" "")) allowing cursor position

Re: [O] add blocks to org-structure-template-alist

2018-04-27 Thread Bastien
Hi Charles, Charles Millar writes: > Is this correct of has the format changed? The format slightly changed, please check this option's docstring. Also see ORG-NEWS here, which I just updated: https://code.orgmode.org/bzg/org-mode/src/master/etc/ORG-NEWS#L65 Let me know if you think this is

Re: [O] add blocks to org-structure-template-alist

2018-04-27 Thread Nicolas Goaziou
Hello, Charles Millar writes: > Hi, > > in my .emacs I have a couple of (add-to-list > 'org-structure-template-alist) blocks of my own, for example > > #+begin_src > > (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? > :type \n#+end_src" "")) > > #+end_src > > which I u

[O] add blocks to org-structure-template-alist

2018-04-27 Thread Charles Millar
Hi, in my .emacs I have a couple of (add-to-list 'org-structure-template-alist) blocks of my own, for example #+begin_src (add-to-list 'org-structure-template-alist '("r" "#+begin_src rec :data? :type \n#+end_src" "")) #+end_src which I used until a few months ago. Is this correct of has