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 13:10:07 +0300 Message-ID: <83leu3y0hs.fsf@gnu.org> References: <83k09oz52i.fsf@gnu.org> <83h74sz4kh.fsf@gnu.org> <83a6ajzmza.fsf@gnu.org> <83r13vy4nf.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11541"; 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 12:11:48 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 1nzy5r-0002qY-Up for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 12:11:48 +0200 Original-Received: from localhost ([::1]:59730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzy5q-0005QU-GT for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 06:11:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzy4N-0005OD-Ma for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 06:10:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzy4N-0002xr-E4 for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 06:10:15 -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=tgjWS1alIocvgO38H15rs2pjpgRQEMn346lTp+NDrQ0=; b=a3zg/q6/+l2l x34WexF0nztAO3toL8XJqAVNvgFRlA0LdY2RZwqcUw9IQ2MPcVOxfgHfxhe4IgTQPFIHXkDg18+kt SDN+fkZGfPSb7s0UAzKeIJBHGFYQqBc0NW+nIUUJwxPnUUV0AjdOFzOSjA2yzptCt/yoec5e6ARuK Ns2kw6UDmghfL0ib4QbcqnRXkjo9K3RlMrRaE4uRRl1GpQb3gy+5sLxn959z9Yu+xgP71YYtfsWWo PoJ8fTp9Hoy02vf/NftzgMwjDcVeWlYTiQVeWBmI/y/Wu/6TtQXMgIqMtwJntQrbTcRXbzHbqL6Jw PgvX1imQs3dhzMyKp4c3LA==; Original-Received: from [87.69.77.57] (port=4520 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 1nzy4L-0001YB-Jb for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 06:10:14 -0400 In-Reply-To: (message from goncholden on Sat, 11 Jun 2022 08:57:54 +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:137686 Archived-At: > Date: Sat, 11 Jun 2022 08:57:54 +0000 > From: goncholden > Cc: help-gnu-emacs@gnu.org > > Ok. But it seemed to me that for fortran I am limited on what I can do, > where the original developers did not. No, you aren't limited, it's the other way around: you have the Emacs power at your fingertips, while they used some simpler editor that placed the burden of indentation on the user. > For instance, how can I get the tab key to just make a tab and > pressing it again to make another tab. As I can do with spaces. You shouldn't need this, not at all. If you set the indentation levels and variables for the style of these files, typing TAB will insert as many TAB characters as needed to get to the correct column. For example, if the line should be indented 3 tab stops, typing TAB just once will insert all the 3 TABs in one go. That is what Emacs indentation commands are about: they insert the whitespace as necessary according to your settings, so that you never again should need to count TABs or insert them one by one. You should embrace this powerful feature instead of fighting against it. It does need some setup to adapt to a particular style of indentation, but that is one-time only, so really worth it.