[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] When is the right time to modify the contents of org-structure-t
From: |
Jorge A. Alfaro-Murillo |
Subject: |
Re: [O] When is the right time to modify the contents of org-structure-template-alist? |
Date: |
Mon, 09 Jun 2014 19:14:06 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Grant Rettke <address@hidden> 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.