Emacs mode for Python

Skip Montanaro skip at mojam.com
Wed Nov 1 20:48:16 EST 2000


    fritz> Maybe the first question I should ask is: Does anyone here use
    fritz> emacs with python?

Yeah, a couple of us do... ;-)

    fritz> What text editor (in a text window) is friendliest to python?

Dunno.  I was an emacs bigot long before I discovered Python, so there was
no time wasted hunting around for a good editor.

Look at Misc/python-mode.el for a Python mode for Emacs/XEmacs.  I have the
following stuff in my (XEmacs) ~/.emacs file:

    (add-hook 'python-mode-hook 'turn-on-font-lock)
    (setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist))

and have python-mode.elc on my load-path.

-- 
Skip Montanaro (skip at mojam.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list