]> git.eshelyaron.com Git - emacs.git/commit
* lisp/simple.el (newline-and-indent): Disable `electric-indent-mode`
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 22 Jan 2021 21:56:57 +0000 (16:56 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 22 Jan 2021 21:56:57 +0000 (16:56 -0500)
commitb9d0cdcacbd3da93b4ebfa10d778efb618881ccc
treeb64f3e1e9bd26c5d3843714714ac8ef348551385
parentba25a82855a2c03c25fec83f3056c166b692e94f
* lisp/simple.el (newline-and-indent): Disable `electric-indent-mode`

With `electric-indent-mode` enabled, `newline-and-indent` ends up indenting
3 times: once for the original line and twice on the new line.
`reindent-then-newline-and-indent` is even worse, indenting twice
both lines.
None of those commands should be affected by `electric-indent-mode`
since they even explicitly say in their name when and how they do
indentation.

(reindent-then-newline-and-indent): Temporarily disable
`electric-indent-mode` as well.
lisp/simple.el