[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variables indent-tabs-mode and tab-always-indent
From: |
carlmarcos |
Subject: |
Re: Variables indent-tabs-mode and tab-always-indent |
Date: |
Sun, 19 Jun 2022 15:06:40 +0200 (CEST) |
Jun 19, 2022, 06:10 by eliz@gnu.org:
>> Date: Sun, 19 Jun 2022 06:12:54 +0200 (CEST)
>> From: carlmarcos--- via Users list for the GNU Emacs text editor
>> <help-gnu-emacs@gnu.org>
>>
>>
>> Documentation for variable `indent-tabs-mode` states "Indentation can insert
>> tabs if this is non-nil".
>>
>> How do these two variables work together
>>
>
> When the value of tab-always-indent and the situation in which you
> press the TAB key are such that Emacs decides to indent the line,
> indent-tabs-mode controls whether Emacs inserts just spaces or a muix
> of TABs and spaces.
>
Does this mean that `tab-always-indent` is just about what happens when the tab
key is used;
whilst `indent-tabs-mode` is concerned about the indentation style of whether
to use tab or spaces?
>> and do they conflict?
>>
>
> No.
>
Do you recommend to enable both? The variable `indent-tabs-mode` does not say
what it uses as default.