> (defun show-tabs () "Show tabs with a slightly changed background"
> (setq font-lock-keywords
> (append font-lock-keywords '(("[\t]+" (0 'tab-face t))))))
> (add-hook 'font-lock-mode-hook 'show-tabs)
font-lock-mode-hook is called both when turning the mode ON and when turning
the mode OFF.
font-lock-keywords should not be modified as you do. Instead you should use
font-lock-add-keywords, which knows about font-lock-compile-keywords.
Stefan
_______________________________________________
Emacs-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-devel