From owner-freebsd-questions Wed Oct 25 17:44:19 2000 Delivered-To: freebsd-questions@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 59F6937B479 for ; Wed, 25 Oct 2000 17:44:13 -0700 (PDT) Received: from hades.hell.gr (patr530-b098.otenet.gr [195.167.121.226]) by athserv.otenet.gr (8.10.1/8.10.1) with ESMTP id e9Q0gnf15550; Thu, 26 Oct 2000 03:42:49 +0300 (EET DST) Received: (from charon@localhost) by hades.hell.gr (8.11.1/8.11.1) id e9PNkTq12168; Thu, 26 Oct 2000 02:46:29 +0300 (EEST) Date: Thu, 26 Oct 2000 02:46:29 +0300 From: Giorgos Keramidas To: Jeff Blaufuss Cc: questions@freebsd.org Subject: Re: Emacs indent Message-ID: <20001026024629.C10377@hades.hell.gr> References: <39F64FC0.731A6C09@ndsu.nodak.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <39F64FC0.731A6C09@ndsu.nodak.edu>; from Jeff_Blaufuss@ndsu.nodak.edu on Tue, Oct 24, 2000 at 10:13:05PM -0500 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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