unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Highlight tabulated and trailing whitespace
@ 2020-12-28  4:11 steve-humphreys
  2020-12-28  4:50 ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 14+ messages in thread
From: steve-humphreys @ 2020-12-28  4:11 UTC (permalink / raw)
  To: Help Gnu Emacs

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





^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-12-28 17:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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