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).
相关问题
- Symbol's function definition is void: declare-
- How can I set the SVN password with Emacs 23.1 bui
- Emacs shell: save commit message
- emacs bind key to the insertion of another
- Emacs - set mark on edit location
相关文章
- ess-rdired: I get this error “no ESS process is as
- Emacs/xterm color annoyance on Linux
- CSS white-space nowrap not working
- Pipe less to Emacs
- Capturing the output of “diff” with org-babel
- emacs terminal mode: how to copy and paste efficie
- How to permanently enable the hs-minor-mode in ema
- Removing trailing white space only for edited line
WhiteSpace mode is an Emacs minor mode for visualizing all white space characters in the current buffer.
Here is a screenshot of WhiteSpace in action taken directly from the Emacs wiki,
Note: WhiteSpaceMode has now replaced BlankMode
indent-broken? - never use tabs in your code - disk space is cheap these days.
Put
(setq-default indent-tabs-mode nil)
in your .emacs file. Get used to typingC-x h M-x untabify
to untabify the entire buffer. To search for tabs typeC-s C-i
. If you have obscure control characters in your buffers you can see them withM-x hexl-mode
.Also
C-x h M-x indent-region
will indent the entire buffer. Some modes like vhdl-mode have a beautify region command.All the possible settings to do that seem to be summarized here (blank-mode) and here and here (ShowWhiteSpace)
also: