From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dominik, C." Subject: RE: Re: usage of bgein_src in 'Literal examples' section Date: Fri, 6 Jun 2008 13:27:22 +0200 Message-ID: <9592BB6CDB1CEB48826BE86ACD71FA996ABF5B@kwik.ic.uva.nl> References: <87tzg8n8oe.fsf@pdrechsler.de><87prqw67uq.fsf@gollum.intra.norang.ca><484743F5.3090100@pdrechsler.de><87lk1k63t9.fsf@gollum.intra.norang.ca> <874p86g84m.fsf@pdrechsler.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1375679282==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4a9K-0001ek-Vh for emacs-orgmode@gnu.org; Fri, 06 Jun 2008 07:30:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4a9J-0001eL-8j for emacs-orgmode@gnu.org; Fri, 06 Jun 2008 07:30:25 -0400 Received: from [199.232.76.173] (port=48145 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4a9I-0001e7-Vk for emacs-orgmode@gnu.org; Fri, 06 Jun 2008 07:30:25 -0400 Received: from kwik.ic.uva.nl ([146.50.98.168]:56185) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4a9I-0004g2-3q for emacs-orgmode@gnu.org; Fri, 06 Jun 2008 07:30:24 -0400 Content-class: urn:content-classes:message List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Patrick Drechsler , emacs-orgmode@gnu.org This is a multi-part message in MIME format. --===============1375679282== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8C7C8.B3A09EE6" This is a multi-part message in MIME format. ------_=_NextPart_001_01C8C7C8.B3A09EE6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=3Dscience.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 =20 Bernt Hansen writes: > Patrick Drechsler 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=20 --=20 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 ------_=_NextPart_001_01C8C7C8.B3A09EE6 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [Orgmode] Re: usage of bgein_src in 'Literal examples' = section

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=3Dscience.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

------_=_NextPart_001_01C8C7C8.B3A09EE6-- --===============1375679282== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1375679282==--