|
From: | Thibaut Verron |
Subject: | Re: indentation |
Date: | Fri, 30 Apr 2021 11:09:13 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |