|
From: | Bernt Hansen |
Subject: | [Orgmode] Re: usage of bgein_src in 'Literal examples' section |
Date: | Wed, 04 Jun 2008 21:58:10 -0400 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Patrick Drechsler <address@hidden> 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...
[Prev in Thread] | Current Thread | [Next in Thread] |