python mode for emacs
Alberto Griggio
albgrig at tiscalinet.it
Fri Jun 21 15:54:26 EDT 2002
On Fri, 21 Jun 2002 18:02:14 +0200, Syver Enstad wrote:
> I've downloaded the latest version from the python cvs tree, and it works
> fine. But... I am not too happy with the default face for the
> py-pseudo-keywords face (None, self....), and tried to change it by
> customizing the face, which worked fine until I restarted emacs and the face
> got it's ugly default. I looked at the font-lock hook and it seems that the
> face is overwritten each time python-mode is loaded with the keyword face.
>
> Is there a straight forward way of deciding how the py-pseudo-keyword-face
> should look?
(defun my-py-mode-hook ()
(set-face-foreground 'py-pseudo-keyword-face "CadetBlue")
;; ... and anything else you want
)
(add-hook 'python-mode-hook 'my-py-mode-hook)
Bye,
Alberto
More information about the Python-list
mailing list