Emacs question

Fredrik Lundh fredrik at pythonware.com
Thu Jan 13 11:34:51 EST 2000


dharms98 at my-deja.com wrote:
> I know there is a way to force emacs to go into python mode even if the
> file doesn't end with .py by putting something at the top of the file.

try something like:

# -*-python-*-

or

#  -*- Mode: Python; tab-width: 4 -*-

etc.  see the emacs info manual for more on this
(emacs -> major modes -> choosing modes)

</F>





More information about the Python-list mailing list