Date: Mon, 16 Oct 2000 20:44:38 -0700 (PDT) From: Christian Lacunza <celacunza@yahoo.com> To: Jeff Blaufuss <Jeff_Blaufuss@ndsu.nodak.edu> Cc: questions@freebsd.org Subject: Re: Emacs indent Message-ID: <20001017034438.29793.qmail@web6305.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001017034438.29793.qmail>