|
From: | Emanuel Berg |
Subject: | Re: Highlight tabulated and trailing whitespace |
Date: | Mon, 28 Dec 2020 05:50:21 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |