1 line
1.3 KiB
Plaintext
1 line
1.3 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>When we are in the middle of a line, <code>open-line</code> splits current line at the cursor while saving the cursor's position, but the opened line below isn't indented.</p> <p>Is there a version which can indent the line below? </p> <p>"RET C-p C-e" seems a bit verbose.</p> <p>I can write a simple command line <code>(save-excursion (newline-and-indent))</code> but I'd love to know if there are any existing ones.</p> <p>Edit: use case (assume that the cursor is at "|"):</p> <pre><code> <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> </code></pre> <p>Edit: explained the use case more thoroughly.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/takutekato"> /u/takutekato </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/rcfggm/is_there_an_indented_version_of_openline/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/rcfggm/is_there_an_indented_version_of_openline/">[comments]</a></span> |