rgb wrote:
If you want to be able to spot the difference between a tab
and a space character you could highlight tabs like this.
(defface tab-face '((t (:background "red")))
"highlight tabs")
(font-lock-add-keywords 'tacl-mode '(("\t" 0 tab-face prepend)))
;; ^^^ substitute your mode name here
;; spaces can be highlighted too if you really want.
(defface space-face '((t (:background "grey" )))
"highlight whitespace")
(font-lock-add-keywords 'tacl-mode '((" " 0 space-face prepend)))
;; ^^^ substitute your mode name here
If you only want to see trailing whitespace I use this
(defun stw () "Toggles `show-trailing-whitespace' on/off"
(interactive)
(setq show-trailing-whitespace (not show-trailing-whitespace)))
Actually I'm looking for a similar minibuffer cmd like the xemacs:
M-x old-whitespace-mode RET
which highlights both white space and tabs.
Anyway, thanks a lot!
--
reply to usenet only
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs