Tutorial on how to use Emacs to program Python
Michael Hudson
mwh at python.net
Mon Feb 17 07:50:40 EST 2003
"Peter Wu" <peterwu at hotmail.com> writes:
> I tried M-x load-library RET python-mode RET before opening a base64.py.
> But, Emacs still tells me (Fundamental). IIRC, if I open a .pl file, Emacs
> correctly reports that it runs under Perl mode then. Thanks for your help!
You need something like this in .emacs:
(setq auto-mode-alist
(cons '("\\.py$" . python-mode) auto-mode-alist))
Cheers,
M.
--
I also fondly recall Paris because that's where I learned to
debug Zetalisp while drunk. -- Olin Shivers
More information about the Python-list
mailing list