emacswhitespace

How do I make Emacs show blank spaces?


How can I make Emacs show blank spaces (like a space, a tab, a line-jump, etc). Many other editors like Kate and Eclipse have this feature and I find it very useful to see when code is indent-broken because of mix of spaces and tabs (particularly Python).


Solution

  • WhiteSpace mode is an Emacs minor mode for visualizing all white space characters in the current buffer. It can be activated with M-x whitespace-mode.

    Here is a screenshot of WhiteSpaceMode in action taken directly from the Emacs wiki,

    whitespace mode in action