in org-mode when I type <s TAB it turns into:



How can I configure it so it creates it in lowercase, e.g.:



Syntactically it's the same, right?

1 Answer 1


The variable that controls this is org-structure-template-alist, and I do this as follows:

(mapc (lambda (arg) (setcdr arg (list (downcase (cadr arg)))))

Perhaps there's a better way to do that (a setq and a mapcar, maybe?), but you get the gist.

  • 1
    This will downcase all the tab-expanded options, if you only want to change #+BEGIN_SRC ... to the lowercase version wrap (setcdr arg ...) in (if (string= (car arg) "s") (setcdr arg ...)) Aug 16, 2017 at 20:22
  • lowercasing all tab-expanded options is what I want. Thanks!
    – iLemming
    Aug 16, 2017 at 20:22
  • oh, inspecting the var I found <n for notes? But what that for? Why would anyone make a section of notes instead of having it as text or in a drawer?
    – iLemming
    Aug 16, 2017 at 20:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.