Difference between revisions of "Whitespace-mode"
Jump to navigation
Jump to search
(native -> built-in) |
m (Added author + minor changes) |
||
Line 1: | Line 1: | ||
{{Package | {{Package | ||
|name=whitespace | |name=whitespace | ||
+ | |author=Vinicius Jose Latorre <viniciusjl@ig.com.br> | ||
|description=visualizes white spaces in the buffer | |description=visualizes white spaces in the buffer | ||
|source=http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/whitespace.el | |source=http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/whitespace.el | ||
Line 8: | Line 9: | ||
}} | }} | ||
− | whitespace-mode is a [[minor mode]] to visualize blanks (tabs, spaces, newline, etc). | + | '''whitespace-mode''' is a [[minor mode]] to visualize blanks (tabs, spaces, newline, etc). |
== Basic setup == | == Basic setup == | ||
− | Whitespace-mode is already bundled with Emacs. | + | Whitespace-mode is already bundled with Emacs. |
+ | |||
Use {{Command|whitespace-mode}} to activate it on the current | Use {{Command|whitespace-mode}} to activate it on the current | ||
− | [[buffer]] | + | [[buffer]], or add the following in your {{EmacsConfigFile}}: |
+ | <source lang="lisp"> | ||
+ | (whitespace-mode 1) | ||
+ | </source> | ||
− | + | ||
+ | You may also use {{Command|global-whitespace-mode}} to activate this mode globally for all buffers. The same effect is achieved by adding the following in your {{EmacsConfigFile}}: | ||
<source lang="lisp"> | <source lang="lisp"> | ||
− | (whitespace-mode 1) | + | (global-whitespace-mode 1) |
</source> | </source> | ||
Latest revision as of 20:31, 23 July 2012
Description | visualizes white spaces in the buffer |
---|---|
Author | Vinicius Jose Latorre <viniciusjl@ig.com.br> |
Maintainer | FSF |
Source | http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/whitespace.el |
Part of Emacs | yes |
whitespace-mode is a minor mode to visualize blanks (tabs, spaces, newline, etc).
Basic setup
Whitespace-mode is already bundled with Emacs.
Use M-x whitespace-mode to activate it on the current buffer, or add the following in your Emacs configuration file:
(whitespace-mode 1)
You may also use M-x global-whitespace-mode to activate this mode globally for all buffers. The same effect is achieved by adding the following in your Emacs configuration file:
(global-whitespace-mode 1)