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

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

Re: Disabling show-wspace for a specific mode or buffer


From: Valera Rozuvan
Subject: Re: Disabling show-wspace for a specific mode or buffer
Date: Thu, 28 Jun 2012 00:45:39 +0300

> I thought you wanted to leave it off for specific modes (you mentioned w3m),
> which is what my suggestion does.

I am just experimenting - and for now looking for the best possible solutions.

> If instead you just want to hit a key to turn it on/off, all you need to do is
> bind `show-ws-toggle-show-trailing-whitespace' to a (single) key - that's what
> it's for:
>
> (global-set-key (kbd "<f11>")
>                'show-ws-toggle-show-trailing-whitespace)

Thanks for the suggestion. But the command
show-ws-toggle-show-trailing-whitespace initially assumes that the
highlighting is OFF. I, on the other hand, from the start turn ON the
highlighting everywhere with the command:

(add-hook 'font-lock-mode-hook 'show-ws-highlight-trailing-whitespace)

So, with your suggestion, I have to press F11 twice to actually tun
OFF highlighting. And also I am not sure if
show-ws-toggle-show-trailing-whitespace works just with the buffer, or
if it is a global toggle.

Regards,
Valera Rozuvan



reply via email to

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