From: "rgb" <rbielaws@i1.net>
Subject: Re: show tabs and white space
Date: 14 Apr 2005 14:34:27 -0700 [thread overview]
Message-ID: <1113514467.635251.184530@l41g2000cwc.googlegroups.com> (raw)
In-Reply-To: d3mg5k$t4j$02$2@news.t-online.com
mgrd wrote:
> For editing a Makefile I need to display/show the tabs and white
spaces
> within it.
>
> Does anybody know how to obtain this?
>
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)))
next prev parent reply other threads:[~2005-04-14 21:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-14 19:26 show tabs and white space mgrd
2005-04-14 21:34 ` rgb [this message]
2005-04-14 22:05 ` mgrd
2005-04-17 23:47 ` Miles Bader
[not found] ` <mailman.1803.1113782366.2895.help-gnu-emacs@gnu.org>
2005-04-18 15:47 ` mgrd
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=1113514467.635251.184530@l41g2000cwc.googlegroups.com \
--to=rbielaws@i1.net \
/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).