Johannes Kastl<p>Edit: Solved, see my answer in the thread! Thanks everyone, you are awesome!</p><p>Dear <a href="https://digitalcourage.social/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> users,</p><p>I am trying to re-learn emacs after using <a href="https://digitalcourage.social/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> for several years.</p><p>One thing that I really liked in vim is that I can "reformat" long lines in a <a href="https://digitalcourage.social/tags/markdown" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>markdown</span></a> file by marking the lines (VISUAL mode) and then hitting "gq". This kept the markdown format, e.g. lists are still lists, but the lines are wrapped at whatever I set as the maximum line length.</p><p>It seems I am missing the right search terms because I only find "M-q" aka fill-paragraph, but this does not respect e.g. markdown lists.</p><p>Does anyone have pointers or search terms for me?</p><p><a href="https://digitalcourage.social/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> <a href="https://digitalcourage.social/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> <a href="https://digitalcourage.social/tags/editor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>editor</span></a> <a href="https://digitalcourage.social/tags/markdown" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>markdown</span></a> <a href="https://digitalcourage.social/tags/FormattingLongLines" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FormattingLongLines</span></a></p>