Emacs: highlighting "self" tweak
Preston Landers
mithy at my-deja.com
Wed Jul 7 11:17:19 EDT 1999
More information about the Python-list mailing list
Wed Jul 7 11:17:19 EDT 1999
- Previous message (by thread): Emacs: highlighting "self" tweak
- Next message (by thread): Emacs: highlighting "self" tweak
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Very cool Sjoerd, thanks a lot! I'm not very knowledgable about elisp, so maybe you all can forgive my naive approach to modifying python-mode.el. Good thing there are a few adults around here to mind my manners. Thanks again! ---Preston In article <19990707133146.F3AD4301CF2 at bireme.oratrix.nl>, Sjoerd Mullender <sjoerd at oratrix.nl> wrote: > You can use this piece of magic in your .emacs file (tested on XEmacs > 21.1): > > (add-to-list 'after-load-alist > (cons "python-mode" > '((add-to-list (quote python-font-lock-keywords) > (quote ("\\b\\(self\\)[ .,]?" > 1 font-lock-type-face)))))) > > This changes the python-font-lock-keywords variable right after > python-mode is loaded. -- || Preston Landers <mithy at my-deja.com> || || http://askpreston.com || Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.
- Previous message (by thread): Emacs: highlighting "self" tweak
- Next message (by thread): Emacs: highlighting "self" tweak
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list