From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Drechsler Subject: Re: usage of bgein_src in 'Literal examples' section Date: Sat, 07 Jun 2008 15:44:29 +0200 Message-ID: <8763slbbr6.fsf@pdrechsler.de> 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> <9592BB6CDB1CEB48826BE86ACD71FA996ABF5B@kwik.ic.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4yiu-0000W0-Du for emacs-orgmode@gnu.org; Sat, 07 Jun 2008 09:44:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4yis-0000Qr-3J for emacs-orgmode@gnu.org; Sat, 07 Jun 2008 09:44:47 -0400 Received: from [199.232.76.173] (port=56808 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4yir-0000QS-Pf for emacs-orgmode@gnu.org; Sat, 07 Jun 2008 09:44:45 -0400 Received: from main.gmane.org ([80.91.229.2]:53322 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4yir-0000ag-8h for emacs-orgmode@gnu.org; Sat, 07 Jun 2008 09:44:45 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K4yik-0000Hx-QS for emacs-orgmode@gnu.org; Sat, 07 Jun 2008 13:44:38 +0000 Received: from dslb-088-065-078-065.pools.arcor-ip.net ([88.65.78.65]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Jun 2008 13:44:38 +0000 Received: from patrick by dslb-088-065-078-065.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Jun 2008 13:44:38 +0000 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: emacs-orgmode@gnu.org "Dominik, C." writes: >> 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! > > 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. This also works fine, thanks for your feedback Dominik. As mentioned in a previous mail I got a bit confused between different emacs buidls on my machine, sorry for the noise. Cheers, Patrick -- 1 + 1 = 3 for large values of 1 and small values of 3. ;-)