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 23:34:28 +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="9027"; 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:26:51 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 1nzLvm-00028h-14 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 19:26:50 +0200 Original-Received: from localhost ([::1]:38126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzLvk-0003YB-ST for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 13:26:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzL7K-0006W6-7C for help-gnu-emacs@gnu.org; Thu, 09 Jun 2022 12:34:43 -0400 Original-Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]:44016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzL7I-00042n-RG for help-gnu-emacs@gnu.org; Thu, 09 Jun 2022 12:34:41 -0400 Original-Received: by mail-yb1-xb34.google.com with SMTP id l204so42656814ybf.10 for ; Thu, 09 Jun 2022 09:34:40 -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=YHjbYWF5TMVZjMzO9UIC3tD00qy8DjXARwk812TJyIU=; b=BsIx9k+IDleJDLJXQQXYbf4JY5iUfc4Y9oUUu7N2omDddZUmJMIqQiJ7egNi1mkkRe pmmRC7WcDbASPqCSKxD6CDRg91vXW/exddqx217Mn+S5Y4VCH8zK2YWHcMpLNl5zajbx 82jykEHfWbZRPIAxVJ4wYjmOTbO7LEQ6K6BDIsKqBMgOztU46VtGQzxwt1/EaydsQQ5s TWxr0W/NTIjc98awuV+nNYZAYL12YGCe+XqFioFKI9EeasBqEaiWZpaRK/6998wv9fI0 2s9XBU37MAHiFvHV4AdA80kHWTZXf5oCxyJBPV7QAALHdEHBbWv3tcxUUQd3/09K+6XA jBEg== 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=YHjbYWF5TMVZjMzO9UIC3tD00qy8DjXARwk812TJyIU=; b=lxU2k5O2hDFkTu15ajmhftGD8AZWsHXk2174Zjmko+Aw8Ml/VyAFxj04tyDZ2M5Nwv KZO6d9X/brMrN5BxAdc5gPNzAZ3jkHsn+qbYH/Q6Y8vtr6hYkIpUvLGdqNI/+vq1UsGo 3DE3vHAP89G5WUFpffVRbQWWxaxxmd++/RTiCQtfFodJWVvviwvlIqB1ZjgBaIVD6QYP DM5+YePzckjJtsda4wiRQqpLw08EtcJr8aCYB2x+ojluxUX8Uh0TX/tenIOk5iHWAWg9 hTeaCyB+6SrU82i1bXV9+gdXgtv+UIw+M3BchZ5jynyVUGhC8X+LPJJ99Xh8B6qCBlI3 9hZQ== X-Gm-Message-State: AOAM530Nub9X+MoXaisa4RI2a1LoDx1t+s13XO/EauUAbOUHsFdJq1le IOTXnBNNm8GXvIWtySfPbnKga2YfuU2vMtnYAc8= X-Google-Smtp-Source: ABdhPJyNtDPe+5MvYpQlCEE4IlM+0DAj004u2f7oYoFQNql28HNz3auaSo7PQRZ0b3wwX67YU0YIurgozGfik3443Bc= X-Received: by 2002:a25:32d5:0:b0:663:fb07:67c6 with SMTP id y204-20020a2532d5000000b00663fb0767c6mr9353916yby.611.1654792479346; Thu, 09 Jun 2022 09:34:39 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b34; envelope-from=yurivkhan@gmail.com; helo=mail-yb1-xb34.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:137568 Archived-At: On Thu, 9 Jun 2022 at 23:13, goncholden wrote: > 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? Major modes where spaces or tabs are syntactically significant, such as makefile-mode and python-mode, already override indent-tabs-mode. Set indent-tabs-mode for your global preference. Deal with exceptions on a case-by-case basis, when and if you encounter them.