https://stackoverflow.com/questions/27077770/how-do-i-disable-electric-indent-on-ret-but-still-keep-other-electric-characters asks and answers how to disable electric indent when pressing RET. All similar questions also seem to stop at "disable electric-indent-mode".
Out-of-the-box, RET indents the previous line and the new line. For the new line this means that it simply adds enough whitespace to make the cursor appear at the correct position.
I like the second part of the behaviour but not the first, i.e. I never want it to indent the previous line. Is there a way to change it so it gives me enough whitespace on the new line but keeping the previous line untouched?
I actually don't need/want most of the electricity. A solution which involves turning off electric-indent-mode but somehow activating the "add whitespace for new lines" feature would be fine with me.