help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] View Whitespace


From: Tom Schutter
Subject: Re: [h-e-w] View Whitespace
Date: Mon, 19 Nov 2001 07:30:30 -0700

Jason Diamond wrote:
> 
> Hi.
> 
> Is there a Lisp function that toggles whether or not whitespace (horizontal
> tabs, line feeds, carriage returns, and spaces) are "visible"?
> 
> Thanks,
> Jason.

I don't know where I got this from, but it does tabs and trailing
spaces.

;;; Editor behavior: color tabs
(custom-set-faces
 '(my-tab-face            ((((class color)) (:background "Khaki"))) t)
 '(my-trailing-space-face ((((class color)) (:background "Gold"))) t))
(add-hook 'font-lock-mode-hook
          (function
           (lambda ()
             (setq font-lock-keywords
                   (append font-lock-keywords
                           '(("\t+" (0 'my-tab-face t))
                             ("[ \t]+$" (0 'my-trailing-space-face
t))))))))

-- 
Tom Schutter
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]