When we are in the middle of a line, open-line
splits current line at the cursor while saving the cursor's position, but the opened line below isn't indented.
Is there a version which can indent the line below?
"RET C-p C-e" seems a bit verbose.
I can write a simple command line (save-excursion (newline-and-indent))
but I'd love to know if there are any existing ones.
Edit: use case (assume that the cursor is at "|"):
<html-tag|></html-tag> <!-- What C-o does --> <html-tag| ></html-tag> <!-- What M-j does --> <html-tag |></html-tag> <!-- What I need --> <html-tag| <!-- we write the attributes here --> ></html-tag> <!-- This is great, too! --> <html-tag | ></html-tag>
Edit: explained the use case more thoroughly.