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 g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson
On Mon, Jun 9, 2014 at 6:14 PM, Jorge A. Alfaro-Murillo <jorge.a.alf...@gmail.com> wrote: > Grant Rettke <g...@wisdomandwonder.com> 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. > > >