Difference between revisions of "Whitespace-mode"

From WikEmacs
Jump to navigation Jump to search
(minor)
m (Added author + minor changes)
 
(One intermediate revision by one other user not shown)
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.<br/>
+
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>
  
or add the following in your [[.emacs]]
+
 
 +
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>
  
 
[[Category:Minor Mode]]
 
[[Category:Minor Mode]]
[[Category:Native Package]]
+
[[Category:Built-in Package]]
 
[[Category:Visualize]]
 
[[Category:Visualize]]

Latest revision as of 20:31, 23 July 2012

whitespace
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)