Uwe Brauer <o...@mat.ucm.es> writes:

>>>> "Rasmus" == Rasmus  <ras...@gmx.us> writes:
>    > Hi Uwe,
>    > Uwe Brauer <o...@mat.ucm.es> writes:
>    >> Templates are another example of this philosophy. I still can't use the
>    >> actual git master version of orgmode since the old templates have been
>    >> removed and the new syntax is not really explained.
>    > Please let me know what you are missing in terms of documentation.
>    > For all of the annoyance of losing the old template system, the data
>    > structure of the new system is surely simpler.
> Thanks, I will send my problems in the next days. Right now I am
> sticking to an old git version from July.
> I asked a while ago that I could not insert any template with the new
> system but nobody answered.
> Do I understand that correctly I have to rewrite my templates or can I
> use the old ones?

You can’t have very complicated templates (unless writing them in the
Tempo syntax).

Basically, you control the first line of the block.
So if you want "Rb" to expand to an src R :key val block you’d do something

    (push ’("Rb" . "src R :key val") ’org-structure-template-alist)

Before the element would be something like

    ("R" . "#+begin_src R :key val\n?\n\#+end_src")

If you used to have "complicated" templates with e.g. headers, that’s not
possible ATM, but it could be added if there’s a need for it.

If you have a typical example of something you are missing, we could
either enrich the manual with how to add such a block directly with tempo.
Or we could perhaps find a way to define them.


Spil noget med Slayer!

Reply via email to