emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Make Org-Babel keyword lowercase
Date: Thu, 06 Feb 2014 13:17:52 -1000	[thread overview]
Message-ID: <m2txcbn84f.fsf@tsdye.com> (raw)
In-Reply-To: <87ha8bu9j6.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Fri, 07 Feb 2014 00:05:33 +0100")

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

  reply	other threads:[~2014-02-06 23:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2014-02-06 23:46     ` Thorsten Jolitz
2014-02-06 23:24 ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2txcbn84f.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=andreas.leha@med.uni-goettingen.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).