From mboxrd@z Thu Jan 1 00:00:00 1970 From: jorge.a.alfaro@gmail.com (Jorge A. Alfaro-Murillo) Subject: Re: When is the right time to modify the contents of org-structure-template-alist? Date: Mon, 09 Jun 2014 19:14:06 -0400 Message-ID: <87ha3tn0ap.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu8li-000259-6R for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 19:14:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wu8lb-0003UU-PT for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 19:14:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:56040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu8lb-0003UK-JD for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 19:14:15 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wu8la-0005ha-OE for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 01:14:14 +0200 Received: from nat-130-132-173-153.central.yale.edu ([130.132.173.153]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jun 2014 01:14:14 +0200 Received: from jorge.a.alfaro by nat-130-132-173-153.central.yale.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jun 2014 01:14:14 +0200 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 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.