[Top][All Lists]

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

Re: Spaces rather than tabs by a major mode hook

From: Yuri Khan
Subject: Re: Spaces rather than tabs by a major mode hook
Date: Thu, 9 Jun 2022 22:46:25 +0700

On Thu, 9 Jun 2022 at 22:30, goncholden <> 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.

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.

reply via email to

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