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

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

Re: Why flip RET and C-j with electric-indent-mode?


From: Eli Zaretskii
Subject: Re: Why flip RET and C-j with electric-indent-mode?
Date: Sat, 29 Nov 2014 09:50:51 +0200

> Date: Fri, 28 Nov 2014 15:56:30 -0700
> From: Bob Proulx <bob@proulx.com>
> 
> So why did emacs flip RET and C-j with electric-indent-mode?

Because users nowadays expect that.

> Here is the news entry.
> 
>   * Editing Changes in Emacs 24.4
> 
>   ** Indentation
> 
>   *** `electric-indent-mode' is now enabled by default.
>   Typing RET reindents the current line and indents the new line.
>   `C-j' inserts a newline but does not indent.  In some programming modes,
>   additional characters are electric (eg `{').
> 
>   *** New buffer-local `electric-indent-local-mode'.
> 
> The change is to set electric-indent-mode all of the time.  Even in
> fundamental-mode?  That is a terrible thing to do to users.  Rug.
> Standing on rug?  Yank rug!

"C-h f newline RET" will have a suggestion that you will like, I
think.



reply via email to

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