Subject: 24.4; python.el: indentation RFE

From: [email-masked] (Fabián Ezequiel Gallina)
Date: Fri, 30 Jan 2015 00:52:32 -0300

tags 19691 + notabug
quit

Hi Carlos,

The functionality already exists, it's a matter of toggling
`electric-indent-mode` OR alternate between using RET and `C-j` for
creating a newline (depending the case).

When `electric-indent-mode` is enabled, you can achieve what you want by
using `C-j`, while RET would indent just like you see right now.

When `electric-indent-mode` is disabled, you can achieve what you want
by using RET, and `C-j` would indent.

If what you want is to keep the current column in places where there are
several indentation levels involved, then `C-a C-j` or `C-a RET`
(depending on the status `electric-indent-mode`) will help.

Cheers,
Fabián