help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to change indenting from spaces to tabs?


From: Drew Adams
Subject: RE: How to change indenting from spaces to tabs?
Date: Wed, 13 Aug 2008 09:23:16 -0700

> indenting should be done by inserting 1 tab instead
> of 4 spaces, where the tab width should be set to 4.
> 
> How can I make Emacs indent using tabs, and possibly also 
> changing the tab width?

(setq-default indent-tabs-mode t)
(setq default-tab-width 4)

Or perhaps set these only for the mode you want (put in the mode hook):

(setq indent-tabs-mode t
      tab-width        4)


The Emacs manual is your friend. Use `i' to look up keywords (such as `tab' and
`width') in the index.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]