Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2000 02:46:29 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Jeff Blaufuss <Jeff_Blaufuss@ndsu.nodak.edu>
Cc:        questions@freebsd.org
Subject:   Re: Emacs indent
Message-ID:  <20001026024629.C10377@hades.hell.gr>
In-Reply-To: <39F64FC0.731A6C09@ndsu.nodak.edu>; from Jeff_Blaufuss@ndsu.nodak.edu on Tue, Oct 24, 2000 at 10:13:05PM -0500
References:  <39F64FC0.731A6C09@ndsu.nodak.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 24, 2000 at 10:13:05PM -0500, Jeff Blaufuss wrote:
> How do I configure Emacs to indent 4 spaces instead of 8 when I press
> TAB?  I have tried changing the tabs stops to every 4 spaces, but emacs
> doesn't seem to accept the change, it still tabs 8 spaces.

Change the value of the `tab-width' variable.  For instance, you could put in your ~/.emacs file:

	(setq tab-width 4)

or if you want this only for text modes:

	(add-hook 'text-mode-hook
	  '(lambda ()
	     (setq tab-width 4)))

-- 
Giorgos Keramidas, < keramida @ ceid . upatras . gr >


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001026024629.C10377>