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

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

Re: Variables indent-tabs-mode and tab-always-indent


From: Eli Zaretskii
Subject: Re: Variables indent-tabs-mode and tab-always-indent
Date: Sun, 19 Jun 2022 16:54:45 +0300

> Date: Sun, 19 Jun 2022 15:06:40 +0200 (CEST)
> From: carlmarcos@tutanota.com
> Cc: help-gnu-emacs@gnu.org
> 
>  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? 

Yes, exactly.

>  and do they conflict?
> 
>  No.
> 
> Do you recommend to enable both?

That depends on the major mode and its conventions, as well as on your
preferences, and whether you intend to exchange your files with people
who use other editors.

> The variable `indent-tabs-mode` does not say what it uses as default.

It does here:

  indent-tabs-mode is a variable defined in ‘src/indent.c’.

  Its value is nil
  Original value was t    <<<<<<<<<<<<<<<<<<<<<<<<<<<
  Local in buffer shr.el; global value is t



reply via email to

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