From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Spaces rather than tabs by a major mode hook Date: Thu, 9 Jun 2022 22:46:25 +0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21911"; mail-complaints-to="usenet@ciao.gmane.io" Cc: goncholden via Users list for the GNU Emacs text editor To: goncholden Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 09 19:29:24 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzLyG-0005Wx-Kr for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 19:29:24 +0200 Original-Received: from localhost ([::1]:41038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzLyD-0005rU-SW for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 13:29:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzKMp-0000BG-H9 for help-gnu-emacs@gnu.org; Thu, 09 Jun 2022 11:46:39 -0400 Original-Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]:43789) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzKMn-0004kQ-Vo for help-gnu-emacs@gnu.org; Thu, 09 Jun 2022 11:46:39 -0400 Original-Received: by mail-qv1-xf32.google.com with SMTP id 63so2350429qva.10 for ; Thu, 09 Jun 2022 08:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R/WcTD4P5uspSFVHFUJQY+L/H9JEjLkuJ91FwdNrNWs=; b=Uf9bVRJE0e7KXqhQvVJJGq6NXGh7jI9x1Q1Cr/C0X9wQ935Th756GYao/ATI7XdE12 KVRl8sLDtror9yBxwiEBlbpLyPQf4FgM6Yd8Wn8wKZrJr9y5ufNOSN9xAgmGf/WE0Wda OSyW58j42AEXr1GyI2kxNxdHKLuAvg5bYwwqJvM+qUmkPygkuomUWg3sxb08mbpLUldi lw3J5t+HZsUVb4eStbg+5k7ADNX0nUH1aQr0Jn7z/iBwJEUlyupifn0nOC73zi7tLsDF XvkCBJ7Tou3DgagcrwIHhjpmN3XBei+SDEZ4ygR/3GWyHB73gjDMFEe89LsPBjGfJsp1 WIOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R/WcTD4P5uspSFVHFUJQY+L/H9JEjLkuJ91FwdNrNWs=; b=QS4tJB46eZAyuk9jHW6J7PBi6EPv7k2Sx66SRsMGgN5roPpT5cbNo0peZX5sC5gEXK iOnxre9Ek3mqlUy0OkEj+fIvkt3JCftTVAI+zyfbg1+4IABLRPeJP6bUFRxjjBrJ3kRY YdXN2kumLpW115Jg5ONP4STcny9LEZJV9EIUj6bmh5t1X3Q172Km1hwKyU3r6MWd24oH ANgTWqxPv0qTO/clYiNcXI2Eo5heYdvyKwU+fpCTxpX+nQN1Mcpcm8lg++7ATqObidiZ EJVoOjwjAEmhtE4xXvPXQKVU6XaoJnVHE5dDSUTsUvX+OHkpjzhHJzT7CL9snd79083w Gq3g== X-Gm-Message-State: AOAM530qcYBcBdit3zRAAJqxzcuhBxIZAfrv1snK5203AERlernig2wS Wp6zFcoffoJd3DUEf6PA+EAALZ//Ep9YCH6pgKU= X-Google-Smtp-Source: ABdhPJwFJUTHy30TkJxGIeVzcjojsVny4fiIzk+0h5SgXIMGnHa5rhGKvBchI4BtdcU4ZTLq2E1U3JxLXAlYuI1zkXo= X-Received: by 2002:a05:6214:5293:b0:46b:b72a:e830 with SMTP id kj19-20020a056214529300b0046bb72ae830mr11636249qvb.82.1654789596880; Thu, 09 Jun 2022 08:46:36 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::f32; envelope-from=yurivkhan@gmail.com; helo=mail-qv1-xf32.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137569 Archived-At: 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.