From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel E. Doherty Subject: Adding Easy Templates Date: Wed, 23 May 2012 08:10:19 -0500 Message-ID: <87d35vxcuc.wl%ded-law@ddoherty.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXBKj-0001At-Di for emacs-orgmode@gnu.org; Wed, 23 May 2012 09:10:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXBKd-0003Fp-5y for emacs-orgmode@gnu.org; Wed, 23 May 2012 09:10:32 -0400 Received: from mail-qa0-f41.google.com ([209.85.216.41]:37263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXBKc-0003FK-Vd for emacs-orgmode@gnu.org; Wed, 23 May 2012 09:10:27 -0400 Received: by qabg27 with SMTP id g27so3702302qab.0 for ; Wed, 23 May 2012 06:10:23 -0700 (PDT) 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: Org-mode List All, I really like the Easy Template facility, and would like to add some of my own. However, I am having trouble with the elisp syntax. I would like to add a couple in my init file, but am having no luck. Here is what I have now: ========================= (eval-after-load 'org (progn (add-to-list 'org-structure-template-alist (list '("m" "#+begin_src emacs-lisp\n?\n#+end_src"))) (add-to-list 'org-structure-template-alist (list '("j" "#+begin_quote\n||Dr|Cr|\n|-\n|?|$||\n|||$|\n#+end_quote"))))) ========================= Which yeilds: ========================= Debugger entered--Lisp error: (invalid-function (("j" "#+begin_quote ||Dr|Cr| |- |?|$|| |||$| #+end_quote"))) ========================= 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. Any help? Thanks. Dan Doherty