Python friendly emacs
Bill Janssen
janssen at parc.xerox.com
Fri Jan 7 19:44:55 EST 2000
Daniel, I run GNU Emacs 20.4 under X, and have no problem with using
Python. I use python-mode.el, which you can get from www.python.org.
You'll need to put the file in a directory which is on your Emacs
load-path, and add
(autoload 'python-mode "python-mode" nil t)
(setq auto-mode-alist (cons '("\\.py" . python-mode) auto-mode-alist))
to your ~/.emacs file.
To get Emacs to default to python mode when it edits a file with the
extension of .cgi, just add
(setq auto-mode-alist (cons '("\\.cgi" . python-mode) auto-mode-alist))
to your ~/.emacs file.
Bill
More information about the Python-list
mailing list