Patrick Drechsler <[EMAIL PROTECTED]> 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...
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode