You can also load the file into Emacs and then check the value of
the variable `major-mode' in that buffer.  It will be c-mode or org-mode
or whatever.  From this value, just strig the "-mode" and you have
the value you need to use in the begin_src line.

- Carsten

-----Original Message-----
From: emacs-orgmode-bounces+dominik=science.uva.nl@gnu.org on behalf of Patrick Drechsler
Sent: Fri 6/6/2008 12:39 PM
To: emacs-orgmode@gnu.org
Subject: [Orgmode] Re: usage of bgein_src in 'Literal examples' section

Bernt Hansen <bernt@norang.ca> writes:

> Patrick Drechsler <patrick@pdrechsler.de> writes:
>
>> But how do I find out which is the correct string for the Emacs mode?
>>
>> Is there a `M-x describe-??' method?
>

[...]

> There's a variable 'auto-mode-alist' (C-h v auto-mode-alist) which
> lists the mappings of filenames to modes.

[...]

Thank Bernt, this the the variable I was looking for!

Cheers,

Patrick
--
Sleep: Thing used by ineffective people as a substitute for coffee.
Ambition: A poor excuse for not having enough sense to be lazy.




_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode