I am writing source code and a lot of times I need to press Enter and have the newline indented with 4 spaces more than the previous. As I don't want to do it always, I would like to be able to use C-RET
to achieve this.
While searching I found C-j
(newline-and-indent) but it always indents with the same amount of spaces and not relatively to the current line.
How can I achieve that?
To make myself clear, what I want is:
First line
/* Not indented. */
Second line
/* Second line indented with 4 spaces. */
Third line
/* Third line indented with 4 spaces
but relative to the second so now it
has 8 spaces. */