[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Highlight tabulated and trailing whitespace
From: |
steve-humphreys |
Subject: |
Re: Highlight tabulated and trailing whitespace |
Date: |
Mon, 28 Dec 2020 07:08:54 +0100 |
I have tried to show tab marks, but the following commands are confusing me.
One can
use a backgrouund colour and introduce a tab mark. But I have no idea how to
achieve
them.
(setq whitespace-style '(face tabs))
(setq whitespace-style '(tabs tab-mark))
> Sent: Monday, December 28, 2020 at 10:42 AM
> From: steve-humphreys@gmx.com
> To: moasenwood@zoho.eu
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: Highlight tabulated and trailing whitespace
>
> What can I do to show tabs like I am doing with show-trailing-whitespace?
>
> > Sent: Monday, December 28, 2020 at 10:20 AM
> > From: "Emanuel Berg via Users list for the GNU Emacs text editor"
> > <help-gnu-emacs@gnu.org>
> > To: help-gnu-emacs@gnu.org
> > Subject: Re: Highlight tabulated and trailing whitespace
> >
> > steve-humphreys wrote:
> >
> > > I would like to highlight tabulated and trailing whitespace, using the
> > > following
> > > code on a dark background. The highlighting is not working. I might
> > > also be
> > > changing tabs with spaced but do not what command I had used.
> > >
> > > (defun whitesp-highlight ()
> > > "Highlights whitespace."
> > >
> > > (require 'whitespace)
> > > (setq-local show-trailing-whitespace t)
> > >
> > > (whitespace-mode)
> > > (setq whitespace-style '(face tabs))
> > > (modify-face whitespace-tab nil "#000000")
> > >
> > > ;; Highlights tabulator regions
> > > (setq whitespace-style '(tabs tab-mark))
> > > (global-whitespace-mode 1) )
> >
> > (setq show-trailing-whitespace t)
> >
> >
> > --
> > underground experts united
> > http://user.it.uu.se/~embe8573
> > https://dataswamp.org/~incal
> >
> >
> >
>
>
- Highlight tabulated and trailing whitespace, steve-humphreys, 2020/12/27
- Re: Highlight tabulated and trailing whitespace, Emanuel Berg, 2020/12/27
- Re: Highlight tabulated and trailing whitespace, steve-humphreys, 2020/12/27
- Re: Highlight tabulated and trailing whitespace, steve-humphreys, 2020/12/28
- Re: Highlight tabulated and trailing whitespace,
steve-humphreys <=
- Re: Highlight tabulated and trailing whitespace, Emanuel Berg, 2020/12/28
- Re: Highlight tabulated and trailing whitespace, steve-humphreys, 2020/12/28
- Re: Highlight tabulated and trailing whitespace, Michael Heerdegen, 2020/12/28
- Re: Highlight tabulated and trailing whitespace, Óscar Fuentes, 2020/12/28
- Re: Highlight tabulated and trailing whitespace, steve-humphreys, 2020/12/28
- Re: Highlight tabulated and trailing whitespace, steve-humphreys, 2020/12/28
- RE: Highlight tabulated and trailing whitespace, Drew Adams, 2020/12/28
- Re: RE: Highlight tabulated and trailing whitespace, steve-humphreys, 2020/12/28