I'm not sure what I did, but I'm trying to use M-x whitespace-cleanup
in a python file and nothing happens. How do I debug this?
Asked
Active
Viewed 174 times
2

daeda
- 439
- 3
- 10
1 Answers
1
Ok I narrowed it down to the following line
(setq whitespace-style ' (face space-mark tab-mark))
If I remove it whitespace-cleanup
works. Probably I'm overwriting something that is necessary for it to work. If I change the line to
(setq-default whitespace-style ' (face tabs spaces trailing space-before-tab newline indentation empty space-after-tab space-mark tab-mark newline-mark))
everything works fine.

daeda
- 439
- 3
- 10
emacs -Q
)? – Oct 28 '18 at 18:30