[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Make Org-Babel keyword lowercase
From: |
Thomas S. Dye |
Subject: |
Re: [O] Make Org-Babel keyword lowercase |
Date: |
Thu, 06 Feb 2014 13:17:52 -1000 |
Andreas Leha <address@hidden> writes:
> Hi Thorsten,
>
> Thorsten Jolitz <address@hidden> writes:
>
>> Hi List,
>>
>> I have this in my init-file:
>>
>> ,-------------------------------------------
>> | ;; Make babel results blocks lowercase
>> | (setq org-babel-results-keyword "results")
>> `-------------------------------------------
>>
>> and would like to insert _all_ babel block-keywords in lowercase
>> (#+begin_src instead of #+BEGIN_SRC etc.), and I even remember that I
>> had this configuration in the past, but I can't find the related
>> customizations anymore.
>>
>> Any hints?
>
>
> I guess you are looking for org-structure-template-alist
>
> Regards,
> Andreas
This is from Bernt Hansen:
#+BEGIN_SRC emacs-lisp :tangle yes
(setq org-babel-results-keyword "results")
(setq org-structure-template-alist
(quote (("s" "#+begin_src ?\n\n#+end_src" "<src lang=\"?\">\n\n</src>")
("e" "#+begin_example\n?\n#+end_example"
"<example>\n?\n</example>")
("q" "#+begin_quote\n?\n#+end_quote" "<quote>\n?\n</quote>")
("v" "#+begin_verse\n?\n#+end_verse" "<verse>\n?\n</verse>")
("c" "#+begin_center\n?\n#+end_center" "<center>\n?\n</center>")
("l" "#+begin_latex\n?\n#+end_latex" "<literal
style=\"latex\">\n?\n</literal>")
("L" "#+latex: " "<literal style=\"latex\">?</literal>")
("h" "#+begin_html\n?\n#+end_html" "<literal
style=\"html\">\n?\n</literal>")
("H" "#+html: " "<literal style=\"html\">?</literal>")
("a" "#+begin_ascii\n?\n#+end_ascii")
("A" "#+ascii: ")
("i" "#+index: ?" "#+index: ?")
("I" "#+include %file ?" "<include file=%file markup=\"?\">"))))
#+END_SRC
hth,
Tom
--
Thomas S. Dye
http://www.tsdye.com