emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Rasmus
Subject: Re: [O] add blocks to org-structure-template-alist
Date: Sun, 29 Apr 2018 22:34:39 +0200
User-agent: Emacs Gnus

Bastien <address@hidden> writes:

> Hi Nicolas,
>
> Nicolas Goaziou <address@hidden> 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 positioning, etc?
>
> If yes, what pointer can we add to ORG-NEWS?

Not at the moment.

The particular example could be approximated with

    ("r" . "#+begin_src rec :data :type")

On the snippet expansion side, you can make whatever you want, see the
"<I" snippet.

It would require a different syntax to support more sophisticated blocks.

Rasmus

-- 
9000!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]