From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: When is the right time to modify the contents of org-structure-template-alist? Date: Mon, 9 Jun 2014 20:32:01 -0500 Message-ID: References: <87ha3tn0ap.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuAuz-0007UU-A9 for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 21:32:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuAux-0007ad-4d for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 21:32:05 -0400 Received: from mail-oa0-x22e.google.com ([2607:f8b0:4003:c02::22e]:61806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuAuw-0007aW-U3 for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 21:32:03 -0400 Received: by mail-oa0-f46.google.com with SMTP id g18so6785298oah.5 for ; Mon, 09 Jun 2014 18:32:02 -0700 (PDT) In-Reply-To: <87ha3tn0ap.fsf@gmail.com> 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: "Jorge A. Alfaro-Murillo" Cc: "emacs-orgmode@gnu.org" Thanks Jorge. It turns out that the error occurred between my keyboard and my chair. Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson On Mon, Jun 9, 2014 at 6:14 PM, Jorge A. Alfaro-Murillo wrote: > Grant Rettke writes: > >> Hi, >> >> Wanting to modify the contents of org-structure-template-alist I had >> this code run at startup after org was required: >> >> (mapc (lambda (asc) >> (let ((org-sce-dc (downcase (nth 1 asc)))) >> (setf (nth 1 asc) org-sce-dc))) >> org-structure-template-alist) >> >> That didn't modify the list, though. >> >> When I run that code after Emacs is started up, it works as expected. >> >> I tried putting that code in the org mode hook too, with the same result= . > > Hi Grant, > > Since org-structure-template-alist is defined in org.el, you could > modify it after org.el loads: > > #+BEGIN_SRC emacs-lisp > (eval-after-load "org" > '(progn > ;; modify org-structure-template-alist here > )) > #+END_SRC > > Best, > > Jorge. > > >