1

with emacs -Q, I can use M-x whitespace-mode :

enter image description here

But in diff-mode, if I use M-x whitespace-mode this is what I get:

enter image description here

you can see the tabs/space/newlines aren't shown (highlighted).

How can I make diff-mode show whitespace like first image?

John Doe
  • 159
  • 6
  • The question is not clear: whether you want to enable `whitespace-mode` in `diff-mode`, or keep whitespace highlighting from the original buffer, for example, by changing diff colors from background to foreground. – link0ff Feb 09 '22 at 19:29
  • @link0ff edited. I want to enable `whitespace-mode` – John Doe Feb 10 '22 at 20:03
  • For clarity, if you use `M-x whitespace-mode` in a diff buffer, that has the desired visual effect? And you just want to know how to automate that? – phils Feb 13 '22 at 03:18
  • No it does not have desired effect. I edited the question. – John Doe Feb 14 '22 at 23:14

0 Answers0