From owner-freebsd-questions Mon Oct 16 20:44:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from web6305.mail.yahoo.com (web6305.mail.yahoo.com [128.11.22.142]) by hub.freebsd.org (Postfix) with SMTP id A44C637B4C5 for ; Mon, 16 Oct 2000 20:44:38 -0700 (PDT) Message-ID: <20001017034438.29793.qmail@web6305.mail.yahoo.com> Received: from [64.161.130.86] by web6305.mail.yahoo.com; Mon, 16 Oct 2000 20:44:38 PDT Date: Mon, 16 Oct 2000 20:44:38 -0700 (PDT) From: Christian Lacunza Subject: Re: Emacs indent To: Jeff Blaufuss Cc: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > How do I configure emacs to indent 4 spaces on normal text files and not > use the tabs stops? hi Jeff. try this ... to prevent emacs from using tab characters for indentation: (setq-default indent-tabs-mode 'nil) to indent 4 spaces in text-mode: (defun four-space-tab-stops () "makes [tab] do tab-to-tab-stop instead of indent-relative" (setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100 104 108 112 116 120)) (local-set-key [tab] 'tab-to-tab-stop) ) (add-hook 'text-mode-hook 'four-space-tab-stops) -- christian. __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message