[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] add blocks to org-structure-template-alist
From: |
Eric Abrahamsen |
Subject: |
Re: [O] add blocks to org-structure-template-alist |
Date: |
Fri, 27 Apr 2018 17:12:13 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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?
I think more complicated templating has gone into org-tempo.el, which
can be loaded separately, and uses the tempo package. The docstring of
`tempo-define-template' shows what's possible.