[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auto indenting code blocks
From: |
Stefan Monnier |
Subject: |
Re: auto indenting code blocks |
Date: |
Sun, 14 Jun 2015 15:59:21 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> I do not believe it’s a smartparens bug. Its job in this context is to
> add a matching closing brace as soon as an opening brace is inserted.
> It’s not an electric-indent-mode bug, either. When a line break is
> inserted immediately before a closing brace, it reindents the closing
> brace according to the mode and style.
> What Sam and I want, however, is, with a single Enter keypress, to
> insert *two* line breaks, position the point between them, and indent
> everything nicely.
Indeed. IIRC electric-pair-mode offers such a feature, and during its
implementation we considered other alternatives, including adding it via
electric-layout-mode which is arguably conceptually closer.
Stefan