From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Spaces rather than tabs by a major mode hook Date: Sat, 11 Jun 2022 14:50:20 +0300 Message-ID: <83bkuzxvur.fsf@gnu.org> References: <83a6ajzmza.fsf@gnu.org> <83r13vy4nf.fsf@gnu.org> <83leu3y0hs.fsf@gnu.org> <83h74rxze0.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38303"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 11 13:51:21 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 1nzzeC-0009kH-KB for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 13:51:20 +0200 Original-Received: from localhost ([::1]:35186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzzeB-00010m-I8 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 07:51:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzzdO-0000yC-1v for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 07:50:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzzdN-0001Vo-Q0 for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 07:50:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=vZnYKVkGRoAP0cLy4ttc2lDSGflbavV4QECPErtJiq0=; b=qr+gvp9v8g7f DxBLaqEYba8B6RqB7S+50hxbqe3xEzS0I87rYgOeu1Ved339rFu4IffOImg4YjrsEEwBFZ7YPEQfw 73jbiPoM+aqR2L4mhFiGYablPSd8xiuidZ4dBwCW6plvZMAP/2duy38OsRu7kc8deSpSh3+hYfuDH ZSvHF9FtZ9rp8nSLrI3gRFDORShUOQ5PMhCO3CebJZDpDwRP3MJexpZLS2A2N/oF+Ji5ExYsCaJMv EMAvgV4Vl88V+AbbYsAr7z9kJlKW5+GyxF15/mSmeOq0yaH0VT4WxOY2oNQ59qBc2EQiLnYyOQOrW +LkjDV7i17lLXWRZXgebBQ==; Original-Received: from [87.69.77.57] (port=2902 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzzdN-0007tA-1d for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 07:50:29 -0400 In-Reply-To: (message from goncholden on Sat, 11 Jun 2022 11:15:59 +0000) 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:137692 Archived-At: > Date: Sat, 11 Jun 2022 11:15:59 +0000 > From: goncholden > Cc: help-gnu-emacs@gnu.org > > > Emacs doesn't impose any style. By "style" I meant how many columns > > should each construct be indented. In Emacs, you can set all the > > parameters of the style one by one via the menu I mentioned, and you > > can do that according to the style used by whoever wrote these files. > > Then you save your customizations, and Emacs will henceforth > > automatically indent according to the style you defined by your > > customizations. > > Let me rephrase again. Emacs imposes indentation rules by requiring said customisations. Emacs requires you to customize, once, the indentation so that it could thereafter help you by indenting everything automatically to suit the indentation style. That's a win by any measure. > The question about how many columns should each construct be indented, has no answer. It should be possible to answer that question by just examining the file you posted. Alternatively, you could just reindent the entire file according to the defaults, like this: C-x h C-M-\ and then keep making changes without any customizations.