You can still configure this by changing the variable org-structure-template-alist
as before, but the format of that variable has been simplified. Before if you wanted <lem
to expand to
#+begin_lemma
#+end_lemma
you would add an entry ("lem" "#begin_lemma\n?#end_lemma")
to org-structure-template-alist
. Now, instead you just add ("lem" "lemma")
.
So for easy cases, the new format is actually much simpler to use, but the older format was more general. You can still get more complicated expansions, but you will need to use tempo-define-template
directly. For example, say you wanted <js
to expand to:
#+begin_export html
<script type="text/javascript">
</script>
#end_export
You can define a tempo template as follows:
(tempo-define-template "inline-js" ; just some name for the template
'("#+begin_export html" n
"<script type=\"text/javascript\">" n p n
"</script>" n
"#end_export")
"<js"
"Insert a script tag" ; documentation
'org-tempo-tags)
The various n
in the template add newlines, and the p
marks where the point will be left after expansion.