GNU Emacs: Do not use tab character, use spaces!
Posted by Dimitar Panayotov on 29 November 2006, 2:25
Put this in your “.emacs” file:
(setq-default indent-tabs-mode nil)
If you want this setting to be per-file, use Emacs file-local variables like below. Remember: file-local Emacs variables MUST be in a comment section. It varies from language to language, you know.
-*- indent-tabs-mode: nil -*-
-*- indent-tabs-mode: t -*-
The first means “only spaces, please”, and the second — “use tabs, please”.
The alternative way of specifying Emacs local variables is (again, this should be in a comment section):
Local variables:
indent-tabs-mode: nil
End:
29 November 2006, 2:58 at 2:58
[...] Comments (RSS) « GNU Emacs: Do not use tab character, use spaces! [...]
5 April 2007, 9:07 at 9:07
[...] tabs — see No tabs [...]