help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a emacs mode to see newline, tabs, spaces


From: Sébastien Vauban
Subject: Re: a emacs mode to see newline, tabs, spaces
Date: Wed, 19 Aug 2009 13:45:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Hi Drew,

>> Is there any way to put emacs in a mode which I can visualize newline, tab,
>> space?
>
> http://www.emacswiki.org/emacs/ShowWhiteSpace

When highlighting tab characters with the following snippet of code, my Gnus
Group buffer becomes black-and-white only.

--8<---------------cut here---------------start------------->8---
;; highlight tabs
(require 'show-wspace)
(add-hook 'font-lock-mode-hook 'highlight-tabs)
--8<---------------cut here---------------end--------------->8---

Same happens with the following:

--8<---------------cut here---------------start------------->8---
;; highlight tabs in all modes
(add-hook 'font-lock-mode-hook
          '(lambda ()
             (font-lock-add-keywords
              nil
              '(("\t" 0 'trailing-whitespace prepend)))))
--8<---------------cut here---------------end--------------->8---

Any idea why?

Best regards,
  Seb

-- 
Sébastien Vauban


reply via email to

[Prev in Thread] Current Thread [Next in Thread]