From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Adding Easy Templates Date: Wed, 23 May 2012 09:29:25 -0400 Message-ID: <23815.1337779765@alphaville> References: <87d35vxcuc.wl%ded-law@ddoherty.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXBdE-0007iv-GD for emacs-orgmode@gnu.org; Wed, 23 May 2012 09:29:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXBd4-0000CR-Fg for emacs-orgmode@gnu.org; Wed, 23 May 2012 09:29:40 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:47376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXBd4-0000C8-99 for emacs-orgmode@gnu.org; Wed, 23 May 2012 09:29:30 -0400 In-Reply-To: Message from Daniel E. Doherty of "Wed, 23 May 2012 08:10:19 CDT." <87d35vxcuc.wl%ded-law@ddoherty.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Daniel E. Doherty" Cc: Org-mode List Daniel E. Doherty 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: ( ). 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