[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with tabs
From: |
Ehud Karni |
Subject: |
Re: problems with tabs |
Date: |
Sat, 9 Jun 2001 15:29:46 +0300 |
On Sat, 9 Jun 2001 00:17:08 +0200 (CEST), Alfonso Acosta
<alfonso_acosta_mail@yahoo.es> wrote:
>
> After pressing enter in fundamental mode, Emacs aligns
> next line with last one by including tabublators.
> Everyone knows that editing program scripts with an
> editor which includes tabs is not a good thing.
Add the following line to your .emacs (_emacs in your case):
(setq-default indent-tabs-mode nil)
Check the help for `indent-tabs-mode'.
or the Info under: Emacs --> Indentation --> Just Spaces .
Notes to Eli Zaretskii: 1. Your answer is partial one because
`indent-tabs-mode' is a buffer-local variable.
2. [Documentation issue] I checked the documentation of all "indent"
functions and variables, and the variable `indent-tabs-mode' is
mentioned only in the function `c-indent-command' and the variable
`c-tab-always-indent' (Emacs 20.7). At least it should be mentioned
in `newline-and-indent'.
Ehud.
--
Ehud Karni Mivtach - Simon Insurance /"\
Tel: +972-3-6212-757 Fax: +972-3-6292-544 \ / ASCII Ribbon Campaign
(USA) Fax and voice mail: 1-815-5509341 X Against HTML Mail
Better Safe Than Sorry / \
mailto:ehud@unix.simonwiesel.co.il http://www.simonwiesel.co.il