From: Valera Rozuvan <valera.rozuvan@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: Alp Aker <alptekin.aker@gmail.com>, help-gnu-emacs@gnu.org
Subject: Re: Disabling show-wspace for a specific mode or buffer
Date: Thu, 28 Jun 2012 00:45:39 +0300 [thread overview]
Message-ID: <CAM8kQFy5DzDqCv0gc30gDBOG9iS2V9nUrSFvJm-Yc6bKPd+K1w@mail.gmail.com> (raw)
In-Reply-To: <F7282534BC464BFB96D3B7770D180563@us.oracle.com>
> 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
next prev parent reply other threads:[~2012-06-27 21:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-27 18:27 Disabling show-wspace for a specific mode or buffer Valera Rozuvan
2012-06-27 20:01 ` Alp Aker
2012-06-27 20:10 ` Valera Rozuvan
2012-06-27 20:31 ` Alp Aker
2012-06-27 20:41 ` Alp Aker
2012-06-27 20:56 ` Valera Rozuvan
2012-06-27 21:16 ` Drew Adams
2012-06-27 21:45 ` Valera Rozuvan [this message]
2012-06-27 22:12 ` Drew Adams
2012-06-27 20:27 ` Drew Adams
[not found] ` <mailman.3588.1340828845.855.help-gnu-emacs@gnu.org>
2012-06-27 22:23 ` Michael Heerdegen
2012-06-28 2:11 ` John Wiegley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAM8kQFy5DzDqCv0gc30gDBOG9iS2V9nUrSFvJm-Yc6bKPd+K1w@mail.gmail.com \
--to=valera.rozuvan@gmail.com \
--cc=alptekin.aker@gmail.com \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).