emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Adding Easy Templates


From: Nick Dokos
Subject: Re: [O] Adding Easy Templates
Date: Wed, 23 May 2012 09:29:25 -0400

Daniel E. Doherty <address@hidden> wrote:

> I have also tried this:
> =========================
>   (eval-after-load 'org
>     (progn
>       (add-to-list 'org-structure-template-alist
>                    '("m" "#+begin_src emacs-lisp\n?\n#+end_src"))
>       (add-to-list 'org-structure-template-alist
>                    '("j" 
> "#+begin_quote\n||Dr|Cr|\n|-\n|?|$||\n|||$|\n#+end_quote"))))
> =========================
> Which spits out a similar error.  I am quoting the list, so I don't
> understand why elisp is interpteting it as a function.  In the first
> case, I even quote it twice.
> 

I presume that it spits out the error when you try to *use* the template,
correct? You can add anything you want to org-structure-template-alist, but
if you try to *use* the thing, it'd better have the correct format.

In any case, the above (without the call to ``list'') is the correct
form, but the elements to add are *three*-element lists: (<key>
<standard text> <muse text>). If you don't care about org-mtags (see the
doc for org-structure-template-alist), just add an empty string as the
third element.

Untried but hope it works,
Nick



reply via email to

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