From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: indentation Date: Fri, 30 Apr 2021 11:09:13 +0200 Message-ID: References: <20210427090348.67C9B5D0@centrum.cz> <20210427202932.DFDEF50D@centrum.cz> <20210428083227.FCFDA7C0@centrum.cz> <20210429091455.3C8C08A9@centrum.cz> <20210430090513.BD2C4C90@centrum.cz> <877dkktd8n.fsf@posteo.net> <20210430105454.F830878B@centrum.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15274"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 Cc: help-gnu-emacs@gnu.org To: ptlo@centrum.cz, Philip Kaludercic Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 30 11:10:11 2021 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 1lcPA1-0003rT-UH for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Apr 2021 11:10:09 +0200 Original-Received: from localhost ([::1]:42128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcPA0-00033x-Vj for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Apr 2021 05:10:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcP9E-000323-TJ for help-gnu-emacs@gnu.org; Fri, 30 Apr 2021 05:09:21 -0400 Original-Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:41698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcP9B-0002Ez-Rd for help-gnu-emacs@gnu.org; Fri, 30 Apr 2021 05:09:20 -0400 Original-Received: by mail-ed1-x533.google.com with SMTP id i24so22193259edy.8 for ; Fri, 30 Apr 2021 02:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=wPV9zfa9GW2dneGWAhET2n5tohcmoM+WjHL9uRHiV40=; b=IWR5VJ/OkU8eTILMpqKHdsru2Cx7AKw6Oc8gxuxM1kFz0XUxSoACHNkLJfzMAycMkG SGOQBPkMS8YMFTLDIZYZrWLrazzKHGv/UiBcfJ8ctDyOM1PkjIzqueD8sxBpfm/YGgrG 5NdROKhZAJDeQlVejWtNX1gwV/f+mG0YN9+gRgEXsnRglh77TvHsNaFOte3XGQI9UvZn erxB+2G4oYiWdyMuyRuXGk7NV17Fc/knQhzIJTYVCN8FHqNd+gCGuNsb8Pkq/L9ViLRJ Nc/gDFOS/gyuBFaMY597/7WQL1ka2HsleQsfJhfzMw2XGqzl6izYLJKHn20Iuk0QMDoy 9/Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=wPV9zfa9GW2dneGWAhET2n5tohcmoM+WjHL9uRHiV40=; b=paNFTRFo8ZOSV0QJiuJPBFZlHm88RSqOP+XAk0A+4qf229ShAksp3t8ZoP7LusX1qD 3ngbpF4ga8KL3/pENFL6R+QVgOhBUKDyoJROvb8KZFCEHQeT2lkaRJTNi6WWh55It37F cV642nRsyOeFXnCBQPyuq1D+/yDn0ElZLHij3Lq3Lv38LWtp3ysx9J3XgbUlB95nd8rw AG9YjwRRb1OaHFYZjs27ZnYD/kXiYyTNxwcV76FHshLfgd4+LPjc2lM3g2brBISbNK81 VzWLzKzumW25lSP+9pj8HQT2zeHbrEdhMTkKyDYEMGN3vJlTxlQSkReC8scyIEd+tES6 3ENg== X-Gm-Message-State: AOAM531xC1DPGD3rEwrfQRq45F6QaEw/7rfVLI1C7YGEZGQIaqlbliQk nkCQujd+JqlNgHz1geRpfDn6FohNKRFNvoiyXog= X-Google-Smtp-Source: ABdhPJx18qrEqL7CAqXiojDsyaOY6Ai+niZjX3dEZ8IpMafhNgNMzHGlj45XLDhmNlL9dHqdFS8Y2A== X-Received: by 2002:a05:6402:5203:: with SMTP id s3mr4593383edd.360.1619773755361; Fri, 30 Apr 2021 02:09:15 -0700 (PDT) Original-Received: from [192.168.2.103] (dslb-088-066-248-118.088.066.pools.vodafone-ip.de. [88.66.248.118]) by smtp.googlemail.com with ESMTPSA id y10sm1545085ejh.105.2021.04.30.02.09.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Apr 2021 02:09:14 -0700 (PDT) In-Reply-To: <20210430105454.F830878B@centrum.cz> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=thibaut.verron@gmail.com; helo=mail-ed1-x533.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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:129214 Archived-At: On 4/30/21 10:54 AM, ptlo@centrum.cz wrote: > I'm talking of Fortran, F90 mode. But the same indentation occurs in Fundamental mode too. > When I write parenthesis, I'm used to type both at once (they are one next to other on keyboard)cand then return by 1 character. I've seen the habit at one teacher years ago. Have you tried electric-pair-mode or something similar? Those modes automate the insertion of the closing pair, essentially saving you that insertion and the C-b. Some 3rd-party packages such as smartparens also help you switch from manual insertion of the pairs to automatic, by silently ignoring the closing pair insertion. That is: pressing '(' results in "([])" ([] is the point), and pressing ')' then results in "()[]". Thibaut