* Make Org-Babel keyword lowercase
@ 2014-02-06 22:42 Thorsten Jolitz
2014-02-06 23:05 ` Andreas Leha
2014-02-06 23:24 ` Nick Dokos
0 siblings, 2 replies; 5+ messages in thread
From: Thorsten Jolitz @ 2014-02-06 22:42 UTC (permalink / raw)
To: emacs-orgmode
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?
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Make Org-Babel keyword lowercase
2014-02-06 22:42 Make Org-Babel keyword lowercase Thorsten Jolitz
@ 2014-02-06 23:05 ` Andreas Leha
2014-02-06 23:17 ` Thomas S. Dye
2014-02-06 23:24 ` Nick Dokos
1 sibling, 1 reply; 5+ messages in thread
From: Andreas Leha @ 2014-02-06 23:05 UTC (permalink / raw)
To: emacs-orgmode
Hi Thorsten,
Thorsten Jolitz <tjolitz@gmail.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Make Org-Babel keyword lowercase
2014-02-06 23:05 ` Andreas Leha
@ 2014-02-06 23:17 ` Thomas S. Dye
2014-02-06 23:46 ` Thorsten Jolitz
0 siblings, 1 reply; 5+ messages in thread
From: Thomas S. Dye @ 2014-02-06 23:17 UTC (permalink / raw)
To: Andreas Leha; +Cc: emacs-orgmode
Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
> Hi Thorsten,
>
> Thorsten Jolitz <tjolitz@gmail.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Make Org-Babel keyword lowercase
2014-02-06 22:42 Make Org-Babel keyword lowercase Thorsten Jolitz
2014-02-06 23:05 ` Andreas Leha
@ 2014-02-06 23:24 ` Nick Dokos
1 sibling, 0 replies; 5+ messages in thread
From: Nick Dokos @ 2014-02-06 23:24 UTC (permalink / raw)
To: emacs-orgmode
Thorsten Jolitz <tjolitz@gmail.com> 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 don't think that anybody is stopping you from entering these things
in lower case: just type them in in lower case. Perhaps you mean that the
easy template mechanism (<s <TAB> etc) inserts them in upper case?
AFAIK, you'll just have to redefine the value of
org-structure-template-alist changing everything to lower case.
Nick
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-02-06 23:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-06 22:42 Make Org-Babel keyword lowercase Thorsten Jolitz
2014-02-06 23:05 ` Andreas Leha
2014-02-06 23:17 ` Thomas S. Dye
2014-02-06 23:46 ` Thorsten Jolitz
2014-02-06 23:24 ` Nick Dokos
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).