[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Disabling automatic reindentation of the current line after a newlin
From: |
Eli Zaretskii |
Subject: |
Re: Disabling automatic reindentation of the current line after a newline |
Date: |
Thu, 27 Oct 2022 08:44:25 +0300 |
> Date: Wed, 26 Oct 2022 23:55:30 +0200
> Cc: help-gnu-emacs@gnu.org
> From: Jean Abou Samra <jean@abou-samra.fr>
>
> Le 24/10/2022 à 19:58, Stefan Monnier via Users list for the GNU Emacs
> text editor a écrit :
> >> line when I press RET. What I'd like is for Emacs to auto-insert the
> >> number of spaces it deems necessary for the new, still blank line
> >> whenever I press RET, without also reindenting the previous line,
> > Set `electric-indent-inhibit` to t.
>
>
> Thanks! This works in Lisp and Scheme. It does not prevent the
> C++ mode from reindenting when inserting a semicolon, but I can
> live with that one.
I think in CC Mode, there's another electric variable which controls
the behavior you describe.
- Re: Disabling automatic reindentation of the current line after a newline, (continued)
- Disabling automatic reindentation of the current line after a newline, Jean Abou Samra, 2022/10/24
- Re: Disabling automatic reindentation of the current line after a newline, Stefan Monnier, 2022/10/24
- Re: Disabling automatic reindentation of the current line after a newline, Anders Munch, 2022/10/25
- Re: Disabling automatic reindentation of the current line after a newline, Stefan Monnier, 2022/10/25
- Re: Disabling automatic reindentation of the current line after a newline, Anders Munch, 2022/10/25
- Re: Disabling automatic reindentation of the current line after a newline, Stefan Monnier, 2022/10/25
- Re: Disabling automatic reindentation of the current line after a newline, Emanuel Berg, 2022/10/26
- Re: Disabling automatic reindentation of the current line after a newline, Jean Abou Samra, 2022/10/26
- Re: Disabling automatic reindentation of the current line after a newline,
Eli Zaretskii <=
- Re: Disabling automatic reindentation of the current line after a newline, Stefan Monnier, 2022/10/27