From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mgrd Newsgroups: gmane.emacs.help Subject: Re: show tabs and white space Date: Fri, 15 Apr 2005 00:05:19 +0200 Organization: T-Online Message-ID: References: <1113514467.635251.184530@l41g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1113516482 28064 80.91.229.2 (14 Apr 2005 22:08:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2005 22:08:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 15 00:08:00 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DMCUH-0005ox-KX for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Apr 2005 00:07:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMCXe-0000qo-LI for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Apr 2005 18:10:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-X-Trace: news.t-online.com 1113516320 05 19345 Q3APraCvFpFbStT+ 050414 22:05:20 Original-X-Complaints-To: usenet-abuse@t-online.de X-ID: ZZerMyZegehmZ8oBM0yY8qL9B-889Rpt-xYG4zHjbN2GYudNrtAlgx User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en In-Reply-To: <1113514467.635251.184530@l41g2000cwc.googlegroups.com> Original-Xref: shelby.stanford.edu gnu.emacs.help:130132 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25699 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25699 rgb wrote: > If you want to be able to spot the difference between a tab > and a space character you could highlight tabs like this. > > (defface tab-face '((t (:background "red"))) > "highlight tabs") > (font-lock-add-keywords 'tacl-mode '(("\t" 0 tab-face prepend))) > ;; ^^^ substitute your mode name here > > ;; spaces can be highlighted too if you really want. > (defface space-face '((t (:background "grey" ))) > "highlight whitespace") > (font-lock-add-keywords 'tacl-mode '((" " 0 space-face prepend))) > ;; ^^^ substitute your mode name here > > If you only want to see trailing whitespace I use this > (defun stw () "Toggles `show-trailing-whitespace' on/off" > (interactive) > (setq show-trailing-whitespace (not show-trailing-whitespace))) Actually I'm looking for a similar minibuffer cmd like the xemacs: M-x old-whitespace-mode RET which highlights both white space and tabs. Anyway, thanks a lot! -- reply to usenet only