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

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

Re: Spaces rather than tabs by a major mode hook


From: goncholden
Subject: Re: Spaces rather than tabs by a major mode hook
Date: Thu, 09 Jun 2022 16:08:19 +0000

------- Original Message -------
On Friday, June 10th, 2022 at 3:46 AM, Yuri Khan <yuri.v.khan@gmail.com> wrote:


> On Thu, 9 Jun 2022 at 22:30, goncholden goncholden@protonmail.com wrote:
>
> > Yuri, could you introspect the benefits between the last two alternatives?
>
>
> If you work alone on your personal projects, you can have a global
> policy that sets indent-tabs-mode depending only on the major mode.
>
> If you collaborate with others, some projects will have a coding
> convention different from your personal preferences. Most of the time,
> you will not be able to convince the project maintainers to change the
> convention, so you will need to abide by it. Directory-local variables
> are a powerful tool for such cases.

I am the project maintainer and prefer spaces because things could look
different on other people’s computers. When using tabs people know they
actually consist of two spaces or four spaces or whatever they decided.
But that information gets lost.

> You can use a combination of the two approaches: A global default, a
> personal hook-based policy, and per-project directory-local overrides
> where necessary.

I would like to use a combination, using spaces except for cases where
some tabs are a requirement of the language.

What is best in such case?



reply via email to

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