Emacs: highlighting "self" tweak
Markus Stenberg
mstenber at cc.Helsinki.FI
Wed Jul 7 11:20:18 EDT 1999
Preston Landers <mithy at my-deja.com> writes:
> I wish I knew of an easy way to make it a hook instead of a patch. If
> someone can figure that out, I would *love* to hear from you.
.. from my own python-mode-hook (snippage) ..
(setq python-font-lock-keywords
;; also color "self"as a 'type'
(cons '("\\b\\(self\\)[ .,]?"
1 font-lock-type-face)
python-font-lock-keywords)
)
.. from my own python-mode-hook (snippage) ..
--
UNIX sysadmin's day:
gawk; talk; date; wine; grep; touch; unzip; touch; gasp; finger; gasp;
mount; fsck; more; yes; gasp; umount; make clean; make mrproper; sleep
More information about the Python-list
mailing list