From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alp Aker Newsgroups: gmane.emacs.help Subject: Re: Disabling show-wspace for a specific mode or buffer Date: Wed, 27 Jun 2012 16:01:00 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1340827272 15585 80.91.229.3 (27 Jun 2012 20:01:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2012 20:01:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Valera Rozuvan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 27 22:01: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 1SjyQH-0001VB-S7 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 22:01:09 +0200 Original-Received: from localhost ([::1]:53921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjyQH-0006Ro-Iy for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jun 2012 16:01:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjyQC-0006RR-69 for help-gnu-emacs@gnu.org; Wed, 27 Jun 2012 16:01:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjyQA-0001P2-Hi for help-gnu-emacs@gnu.org; Wed, 27 Jun 2012 16:01:03 -0400 Original-Received: from mail-yw0-f48.google.com ([209.85.213.48]:61195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjyQA-0001Oa-BP for help-gnu-emacs@gnu.org; Wed, 27 Jun 2012 16:01:02 -0400 Original-Received: by yhfq46 with SMTP id q46so884562yhf.35 for ; Wed, 27 Jun 2012 13:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gZkwHr0sIf37K1PWMYj1cX7b2vqRBIc+Ki6HLlPCrSg=; b=M8Z2M/px2xEFzC1ZTAbB7zCJViiIee7G3MapfpKxgcF6d1NfSyR+2gypf6LiEMbdri NIp2H8M6EHTrnyJecvDVXL0AxRNgvhM/NRBfO3auXKgT1sHAX9k2fYFWpGlrqz4ywsDR ndF55jX545ocVdpJKYyGL22A1469iEBQ8nGtlzCYeP6gZCLxfihCt9dhNiTwr9F4a27M anYJ11eXPp5sA0kHj90VJxgHvcoZntEeZVsiJ7q8Kf8c9XaZw3ietxpNTFl0UqHtosLW rkzAKCs0x10lm31BUMQi/63NW+MCEBd/jFIvSiVcCwR3WH8vPNCTmLfkxEI1tfqPhrf/ hklQ== Original-Received: by 10.42.210.193 with SMTP id gl1mr11708655icb.57.1340827260265; Wed, 27 Jun 2012 13:01:00 -0700 (PDT) Original-Received: by 10.64.52.5 with HTTP; Wed, 27 Jun 2012 13:01:00 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.48 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:85532 Archived-At: > I am using the package 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. > > Can anyone suggest a solution for this problem? Does this work? (Untested.) (add-hook 'w3m-mode-hook 'show-ws-dont-highlight-trailing-whitespace) (add-hook 'w3m-mode-hook 'show-ws-dont-highlight-tabs)