From: Valera Rozuvan <valera.rozuvan@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Disabling show-wspace for a specific mode or buffer
Date: Wed, 27 Jun 2012 21:27:26 +0300 [thread overview]
Message-ID: <CAM8kQFxrM3bp1jsyi+73c8F1SYNoLY+0i=u=maUoyCkpga0DAg@mail.gmail.com> (raw)
Hi!
I am using the package show-wspace (
http://www.emacswiki.org/emacs/show-wspace.el ) to visually show
trailing whitespace and tab characters in all my files. I achieve this
by adding the following line to the ~/.emacs file:
(add-to-list 'load-path "~/.emacs.d/") ;; show-wspace.el can be found here
(require 'show-wspace)
(add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs)
(add-hook 'font-lock-mode-hook 'show-ws-highlight-trailing-whitespace)
My problem is that in 99% of buffers I want this behavior, but
sometimes I don't. For example, when I run the command M-x w3m to
browse the web, I don't want to see trailing whitespace highlighted.
Can anyone suggest a solution for this problem?
Regards,
Valera Rozuvan
next reply other threads:[~2012-06-27 18:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-27 18:27 Valera Rozuvan [this message]
2012-06-27 20:01 ` Disabling show-wspace for a specific mode or buffer 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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAM8kQFxrM3bp1jsyi+73c8F1SYNoLY+0i=u=maUoyCkpga0DAg@mail.gmail.com' \
--to=valera.rozuvan@gmail.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.