[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs seems to think tab width is two spaces
From: |
Matthieu Moy |
Subject: |
Re: emacs seems to think tab width is two spaces |
Date: |
Thu, 29 Apr 2004 08:06:29 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux) |
"William Payne" <mikas_n_o_s_p_a_m_493@student.liu.se> writes:
> (setq tab-width 3)
Please avoid this.
A tab is 8 spaces, you can't change it. Well, you can change it for
you, but then, files written by you will become almost readable by
other people, or even by you with another tool.
[...]
> (setq-default indent-tabs-mode nil) ; Use spaces, not tabs, for
> indentation.
Anyway, you're indenting with spaces, so it wasn't needed.
There is a confusion here. TAB is a character. You can enter it with
C-q TAB in any mode, or with TAB in fundamental mode.
Most programming languages modes rebind TAB to an indentation
function. What you want to change is the behavior of this indentation
function. (but you understood this from your second post I think)
--
Matthieu