From: steve-humphreys@gmx.com
To: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Highlight tabulated and trailing whitespace
Date: Mon, 28 Dec 2020 05:11:06 +0100 [thread overview]
Message-ID: <trinity-ac4110c5-4979-48b0-bd57-a220f170153f-1609128665987@3c-app-mailcom-bs16> (raw)
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) )
next reply other threads:[~2020-12-28 4:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-28 4:11 steve-humphreys [this message]
2020-12-28 4:50 ` Highlight tabulated and trailing whitespace Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-28 4:56 ` steve-humphreys
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-ac4110c5-4979-48b0-bd57-a220f170153f-1609128665987@3c-app-mailcom-bs16 \
--to=steve-humphreys@gmx.com \
--cc=help-gnu-emacs@gnu.org \
/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.