Let's say I have the following code:
void foo(){
~
}
I have marked point with ~. When I press enter the electric indentation works as normal but it doesn't keep the indentation for the previous line.
void foo(){
// no indentation on this line
~
}
How can I set my .emacs file to keep the indentation? Expected result:
void foo(){
--->
--->~
}
Any help is appreciated. Using emacs 26.1