all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: steve-humphreys@gmx.com
To: moasenwood@zoho.eu
Cc: help-gnu-emacs@gnu.org
Subject: Re: Highlight tabulated and trailing whitespace
Date: Mon, 28 Dec 2020 05:56:43 +0100	[thread overview]
Message-ID: <trinity-008ee52a-02f0-4f41-89ee-4d1d93ab1f02-1609131403053@3c-app-mailcom-bs16> (raw)
In-Reply-To: <87ft3qilf6.fsf@zoho.eu>

> 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)
>

Is "show-trailing-whitespace" buffer local?

> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>
>



  reply	other threads:[~2020-12-28  4:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-28  4:11 Highlight tabulated and trailing whitespace steve-humphreys
2020-12-28  4:50 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-28  4:56   ` steve-humphreys [this message]
2020-12-28  5:07     ` 2QdxY4RzWzUUiLuE
2020-12-28  5:12   ` steve-humphreys
2020-12-28  6:08     ` steve-humphreys
2020-12-28  7:41       ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-28  8:40         ` steve-humphreys
2020-12-28 10:59           ` Michael Heerdegen
2020-12-28 12:42           ` Óscar Fuentes
2020-12-28 13:09           ` steve-humphreys
2020-12-28 16:08             ` steve-humphreys
2020-12-28 16:55               ` Drew Adams
2020-12-28 17:06                 ` steve-humphreys

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-008ee52a-02f0-4f41-89ee-4d1d93ab1f02-1609131403053@3c-app-mailcom-bs16 \
    --to=steve-humphreys@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.