From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Valera Rozuvan Newsgroups: gmane.emacs.help Subject: Disabling show-wspace for a specific mode or buffer Date: Wed, 27 Jun 2012 21:27:26 +0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1340824933 28997 80.91.229.3 (27 Jun 2012 19:22:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2012 19:22:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 27 21:22:12 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SjxoV-0001ot-Ox for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 21:22:07 +0200 Original-Received: from localhost ([::1]:34225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjxoV-0002j4-LS for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 15:22:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjwxj-0003Ea-3b for help-gnu-emacs@gnu.org; Wed, 27 Jun 2012 14:27:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sjwxf-0003Zy-CB for help-gnu-emacs@gnu.org; Wed, 27 Jun 2012 14:27:34 -0400 Original-Received: from mail-yw0-f48.google.com ([209.85.213.48]:60119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sjwxf-0003Yd-5g for help-gnu-emacs@gnu.org; Wed, 27 Jun 2012 14:27:31 -0400 Original-Received: by yhfq46 with SMTP id q46so781827yhf.35 for ; Wed, 27 Jun 2012 11:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=YF04Uxd4WM64KTLUx9A49U8Rtfx3hmbbnvCAY5gr8P4=; b=W2uVzEbL6PhfZoIGjdV08T7P351olT2WuU1l8abR1R+ZCjeeGGq1vdgXP1rMOyMhK6 yqfWsf2nPI58zsRbo5HYNEQIu1U+KUTZhQnTcDHcjUzc36k24w4lR0zhG6NhTWpcvGWU gFQfiKnCG+whyi6l7J9D+03/tx2kjJQnajL5xVAiytH69nc5KOYWfUFchhRSQ+Suq5a9 bAC2xp1h5BkorryKz2FHJZyDSqhJNLLwOvpwwtgLhaWK33dFPsTHwxgHFZQHSnarDWm9 tOKNrJin0pj70Jiienc3m1BZ6s8QO9RrbJOGMZ/9Yie+S1ZBiZrApJ9V0z9HA2B4OGt6 TVSQ== Original-Received: by 10.50.157.136 with SMTP id wm8mr2554963igb.14.1340821646956; Wed, 27 Jun 2012 11:27:26 -0700 (PDT) Original-Received: by 10.50.23.34 with HTTP; Wed, 27 Jun 2012 11:27:26 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.48 X-Mailman-Approved-At: Wed, 27 Jun 2012 15:22:02 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85530 Archived-At: 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