Py-Mode on GNU Emacs?

J Donald jeddak at earthlink.net
Sun Feb 13 17:24:08 EST 2000


Hmmmmm.....works for me. The only thing had been doing differently was to try
to use a different site-lisp directory.

"Thomas A. Bryan" wrote:

>
>
> I have no problems in Emacs 20.3.1 (on Red Hat Linux 6.0).
>
> Python mode is on my system (version 3.28):
>
> $ locate python-mode.el
> /usr/share/emacs/site-lisp/python-mode.el
> /usr/share/emacs/site-lisp/python-mode.elc
>
> Here are the relevant lines from my .emacs file.
>
> ;;; For Python mode
> (setq auto-mode-alist
>       (cons '("\\.py$" . python-mode) auto-mode-alist))
> (setq interpreter-mode-alist
>       (cons '("python" . python-mode)
>             interpreter-mode-alist))
> (autoload 'python-mode "python-mode" "Python hacking mode." t)
> (defun my-python-mode-hook ()
>   ;; make sure that emacs uses only spaces for indentation
>   (setq-default indent-tabs-mode nil)
>   )
> (add-hook 'python-mode-hook 'my-python-mode-hook)
>
> (global-font-lock-mode t)
> (setq font-lock-maximum-decoration t)




More information about the Python-list mailing list