Emacs: highlighting "self" tweak
Harald Hanche-Olsen
hanche at math.ntnu.no
Wed Jul 7 17:12:33 EDT 1999
More information about the Python-list mailing list
Wed Jul 7 17:12:33 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 ]
+ Sjoerd Mullender <sjoerd at oratrix.nl>: | 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)))))) which could be written more briefly as (eval-after-load "python-mode" '((add-to-list 'python-font-lock-keywords '("\\b\\(self\\)[ .,]?" 1 font-lock-type-face)))) -- * Harald Hanche-Olsen <URL:http://www.math.ntnu.no/~hanche/> - "There arises from a bad and unapt formation of words a wonderful obstruction to the mind." - Francis Bacon
- 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