emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [Radio tables???]


From: Rasmus
Subject: Re: [O] [Radio tables???]
Date: Tue, 10 Apr 2018 23:57:42 +0200
User-agent: Emacs Gnus

Uwe Brauer <address@hidden> writes:

>>>> "Rasmus" == Rasmus  <address@hidden> writes:
>
>    > Hi Uwe,
>    > Uwe Brauer <address@hidden> 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
like

    (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.

Rasmus

-- 
Spil noget med Slayer!




reply via email to

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