9
Using whitespace mode (vernon-grant.com)
submitted 1 year ago by NanoooK@sh.itjust.works to c/emacs@lemmy.ml

Today, we’re taking a look at Emacs’s whitespace-mode and discussing how we can simplify its configuration to make it more applicable for most use cases.

you are viewing a single comment's thread
view the rest of the comments
[-] Dunkin@lemmy.world 3 points 1 year ago

I find whitespace-mode invaluable in finding trailing whitespace, use of literal tabs and the like I always have it on when looking at code. Good tips in the article but I wish it had screen shots / showed examples.

[-] NanoooK@sh.itjust.works 3 points 1 year ago

For trailing whitespace, isn't simply the variable show-trailing-whitespace enough?

I'm discovering about whitespace-mode and found this article which helped me to understand the package. Do you know if it allows to display TAB with a specific background colour?

[-] cons@lemmy.ml 4 points 1 year ago

Emfy setup recommends three settings for trailing whitespace:

(setq-default show-trailing-whitespace t)
(setq-default indicate-empty-lines t)
(setq-default indicate-buffer-boundaries 'left)

Screenshots showing the results: https://github.com/susam/emfy#show-stray-whitespace

this post was submitted on 19 Aug 2023
9 points (90.9% liked)

Emacs

1978 readers
17 users here now

Our infinitely powerful editor.

founded 4 years ago
MODERATORS