help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: change spaces indent in text mode?


From: Glauber Alex Dias Prado
Subject: Re: change spaces indent in text mode?
Date: Sat, 30 Jan 2010 19:59:01 -0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Tim X <address@hidden> writes:

> Brendan Miller <address@hidden> writes:
>
>> Great, thanks!
>>
>> The only problem I have, is that m-i seems to indent by 8 spaces. I
>> tried putting
>>
>> (setq tab-width 4) in my .emacs, but that doesn't seem to change
>> anything... is m-i controlled by a different variable?
>>
>> On Fri, Jan 29, 2010 at 11:39 AM, Teemu Likonen <address@hidden> wrote:
>>> * 2010-01-29 11:28 (-0800), Brendan Miller wrote:
>>>
>>>> When I hit tab in text mode, it indents by 5 spaces. How do I change
>>>> that? Setting tab-width doesn't seem to do the right thing.
>>>
>>> TAB key in text-mode indents to the columns of previous line's words. If
>>> you want to go to next tab stop, as defined in tab-stop-list variable,
>>> use M-i. For example, first write a line like this:
>>>
>>>    Here     are    some                     words.
>>>
>>> Then press TAB key a couple of times on the next line. Then go to the
>>> beginning of line and press M-i a couple of times. You should see the
>>> difference.
>>>
>>
>>
>
> You missed the critical phrase in  Teemu's response i.e.
>
> "you want to go to next tab stop, as defined in tab-stop-list variable,"
>
> ,----[ C-h v tab-stop-list RET ]
> | tab-stop-list is a variable defined in `indent.el'.
> | Its value is 
> | (4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76)
> | 
> | 
> |   This variable is safe as a file local variable if its value
> |   satisfies the predicate `listp'.
> | 
> | Documentation:
> | List of tab stop positions used by `tab-to-tab-stop'.
> | This should be a list of integers, ordered from smallest to largest.
> | 
> | You can customize this variable.
> `----

Sorry not related to the original question but what do you use to have a
box like that above when writing?

> The 'default' emacs version jumps by 8 spaces per tab stop.
>
> Tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]