From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: usage of bgein_src in 'Literal examples' section Date: Wed, 04 Jun 2008 21:58:10 -0400 Message-ID: <87lk1k63t9.fsf@gollum.intra.norang.ca> References: <87tzg8n8oe.fsf@pdrechsler.de> <87prqw67uq.fsf@gollum.intra.norang.ca> <484743F5.3090100@pdrechsler.de> 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 1K44k4-0002n0-N5 for emacs-orgmode@gnu.org; Wed, 04 Jun 2008 21:58:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K44k3-0002lL-5R for emacs-orgmode@gnu.org; Wed, 04 Jun 2008 21:58:16 -0400 Received: from [199.232.76.173] (port=45122 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K44k3-0002lE-2l for emacs-orgmode@gnu.org; Wed, 04 Jun 2008 21:58:15 -0400 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:53157) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K44k2-00018G-M6 for emacs-orgmode@gnu.org; Wed, 04 Jun 2008 21:58:14 -0400 In-Reply-To: <484743F5.3090100@pdrechsler.de> (Patrick Drechsler's message of "Thu\, 05 Jun 2008 03\:40\:05 +0200") 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 Cc: emacs-orgmode@gnu.org 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? I think any function ending in '-mode' would be valid If you open a file and it automatically loads the correct mode the mode is listed on the modeline in () e.g. while composing this message it's (Message MML Fly OrgStruct) as major mode and minor modes. There's a variable 'auto-mode-alist' (C-h v auto-mode-alist) which lists the mappings of filenames to modes. I have entries like this in mine: ("\\.txt$" . outline-mode) ("\\.css\\'" . css-mode) ("\\.py\\'" . python-mode) etc so for *.py files which use python-mode #+BEGIN_SRC python def foo(): print "in foo" 10 if __name__ == '__main__': foo() #+END_SRC HTH, Bernt PS. Sorry I didn't answer that the first time around...