Emacs mode for Python

Steffen Ries steffen.ries at sympatico.ca
Sat Nov 4 13:48:01 CET 2000

Skip Montanaro <skip at mojam.com> writes:

> 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))

You may want to add:
(setq interpreter-mode-alist
      (append '(("python" . python-mode)) interpreter-mode-alist))

steffen.ries at sympatico.ca	<> Gravity is a myth -- the Earth sucks!

More information about the Python-list mailing list