I have googled on this but can't find any elisp script for this. Sometimes i do a whitespace-cleanup then diff-buffer-with-file to see what whitespace-cleanup has done.
If you want whitespace-mode enabled for all diff-mode buffers:
(add-hook 'diff-mode-hook
'(lambda ()
(whitespace-mode 1)))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With