From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: When is the right time to modify the contents of org-structure-template-alist? Date: Mon, 9 Jun 2014 18:03:05 -0500 Message-ID: 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]:45876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu8ap-0008Fn-8B for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 19:03:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wu8ao-0007Xe-49 for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 19:03:07 -0400 Received: from mail-oa0-x231.google.com ([2607:f8b0:4003:c02::231]:50427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu8ao-0007XX-0c for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 19:03:06 -0400 Received: by mail-oa0-f49.google.com with SMTP id i7so1890806oag.22 for ; Mon, 09 Jun 2014 16:03:05 -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: "emacs-orgmode@gnu.org" 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. Suspect my ignorance is catching up with me. Any ideas what I may be doing wrong here? Kind regards, 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