Tutorial on how to use Emacs to program Python

Klaus Momberger klausm0762 at yahoo.de
Mon Feb 17 11:48:31 EST 2003


"Peter Wu" <peterwu at hotmail.com> wrote in message news:<b2ps4u$1eo0c2$1 at ID-117651.news.dfncis.de>...

....
> The .emacs just contains something related to Gnus mail/news management.
> No code for Python, which is what I am looking for.
> 
> 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!
>
Hello,
put this into your _emacs/.emacs : 

(setq load-path (cons "c:/emacs-20.7/lisp" load-path))
(setq auto-mode-alist (append '(("\\.py$"  . python-mode)) auto-mode-alist))

-klaus




More information about the Python-list mailing list