emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newline-and-indent vs. electric-indent-mode


From: Dmitry Gutov
Subject: Re: newline-and-indent vs. electric-indent-mode
Date: Sat, 23 Jan 2021 00:43:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 22.01.2021 17:09, Stefan Monnier wrote:
I think both having two calls (one for each line)
I would like it to stop reindenting the previous line.

"it" being `newline-and-indent` (when used together with
`electric-indent-mode`) or `electric-indent-mode` in general?

The former.

For `electric-indent-mode` have you tried
(setq-default electric-indent-inhibit t) ?

That would disable the effects of electric-indent-functions, and in particular, of ruby--electric-indent-p.

But with your latest change, seems like I can bind `newline-and-indent` to RET and it will behave as expected.



reply via email to

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