help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Highlight tabulated and trailing whitespace


From: Óscar Fuentes
Subject: Re: Highlight tabulated and trailing whitespace
Date: Mon, 28 Dec 2020 13:42:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.50 (gnu/linux)

steve-humphreys@gmx.com writes:

> Have tried the following two lines to no effect
>
> (require 'whitespace)
> (whitespace-mode)

In a buffer, just:

M-x whitespace-mode

For enabling it automatically when you open certain type of files, use a
major mode hook. For instance:

(add-hook 'prog-mode-hook #'whitespace-mode)

Will activate whitespace-mode in all programming language modes.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]