all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Upper or lower case in BEGIN_SRC and other keywords
@ 2016-06-16 16:13 William Denton
  2016-06-16 16:53 ` Kaushal Modi
  2016-06-17  4:08 ` Bernhard Pröll
  0 siblings, 2 replies; 3+ messages in thread
From: William Denton @ 2016-06-16 16:13 UTC (permalink / raw)
  To: emacs-orgmode

When I use the <s shortcut for #+BEGIN_SRC, Org puts it in upper case.  And 
#+RESULTS is in upper case too.  I noticed other people have these keywords in 
lower case in examples or config files, so I looked in the manual, which says 
[1]

"Org uses option keywords (like #+TITLE to set the title) and environment 
keywords (like #+BEGIN_HTML to start a HTML environment). They are written in 
uppercase in the manual to enhance its readability, but you can use lowercase in 
your Org files."

There's a footnote [2] that says:

"Easy templates insert lowercase keywords and Babel dynamically inserts 
#+results."

How come this doesn't happen for me?  I don't see any variable that's making 
things default to upper case for me.

This isn't a problem ... I'm just curious.

Bill

[1] http://orgmode.org/org.html#Conventions
[2] http://orgmode.org/org.html#fn-3

-- 
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Upper or lower case in BEGIN_SRC and other keywords
  2016-06-16 16:13 Upper or lower case in BEGIN_SRC and other keywords William Denton
@ 2016-06-16 16:53 ` Kaushal Modi
  2016-06-17  4:08 ` Bernhard Pröll
  1 sibling, 0 replies; 3+ messages in thread
From: Kaushal Modi @ 2016-06-16 16:53 UTC (permalink / raw)
  To: William Denton, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1383 bytes --]

I believe that, in general, things are case-insensitive in org-mode. Please
do help clarify this if this is wrong.

The only place that I have come across as case-sensitive is the tag system.
If you tag a sub-tree with ':archive:', it will not be archived. The tag
has to be ':ARCHIVE:'.

On Thu, Jun 16, 2016 at 12:32 PM William Denton <wtd@pobox.com> wrote:

> When I use the <s shortcut for #+BEGIN_SRC, Org puts it in upper case.  And
> #+RESULTS is in upper case too.  I noticed other people have these
> keywords in
> lower case in examples or config files, so I looked in the manual, which
> says
> [1]
>
> "Org uses option keywords (like #+TITLE to set the title) and environment
> keywords (like #+BEGIN_HTML to start a HTML environment). They are written
> in
> uppercase in the manual to enhance its readability, but you can use
> lowercase in
> your Org files."
>
> There's a footnote [2] that says:
>
> "Easy templates insert lowercase keywords and Babel dynamically inserts
> #+results."
>
> How come this doesn't happen for me?  I don't see any variable that's
> making
> things default to upper case for me.
>
> This isn't a problem ... I'm just curious.
>
> Bill
>
> [1] http://orgmode.org/org.html#Conventions
> [2] http://orgmode.org/org.html#fn-3
>
> --
> William Denton :: Toronto, Canada :: https://www.miskatonic.org/
> Caveat lector.
>
> --

-- 
Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 2125 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Upper or lower case in BEGIN_SRC and other keywords
  2016-06-16 16:13 Upper or lower case in BEGIN_SRC and other keywords William Denton
  2016-06-16 16:53 ` Kaushal Modi
@ 2016-06-17  4:08 ` Bernhard Pröll
  1 sibling, 0 replies; 3+ messages in thread
From: Bernhard Pröll @ 2016-06-17  4:08 UTC (permalink / raw)
  To: emacs-orgmode

On Thu, 16. Jun 12:13, William Denton wrote:
>When I use the <s shortcut for #+BEGIN_SRC, Org puts it in upper
>case.  And #+RESULTS is in upper case too.  I noticed other people
>have these keywords in lower case in examples or config files, so I
>looked in the manual, which says [1]

For one, there is a ~org-babel-results-keyword~ variable. Also I prefer
src block keywords not to stand out as such:

#+begin_src emacs-lisp
(setcar org-structure-template-alist '("s" "#+begin_src ?\n\n#+end_src" ""))
#+end_src

For me, it's just a matter of taste.

Regards,
Bernhard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-17  4:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-16 16:13 Upper or lower case in BEGIN_SRC and other keywords William Denton
2016-06-16 16:53 ` Kaushal Modi
2016-06-17  4:08 ` Bernhard Pröll

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.