help-gnu-emacs
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]