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

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

Re: trailing whitespace visible on some buffers


From: Edward O'Connor
Subject: Re: trailing whitespace visible on some buffers
Date: Sat, 14 Sep 2002 09:57:12 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

> This is an elementary question, but I haven't found the solution
> of my problem.
> 
> I want to set the buffer-local variable
> `show-trailing-whitespace' to `t' for all buffers

(setq-default show-trailing-whitespace t)

> except for *info*, *diary*, *calendar*, and *mail presentation*.

(let ((hook (lambda () (setq show-trailing-whitespace nil))))
  (mapc (lambda (var)
          (add-hook var hook))
        '(info-mode-hook calendar-mode-hook diary-hook)))

Untested.

Sorry, I don't know what the *mail presentation* buffer is.


HTH

-- 
Edward O'Connor
ted@oconnor.cx


reply via email to

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