I use m-q in org mode to fill paragraphs.

For the below,

- asdf

When pressing m-q, it will be joined together,

- asdfasdf

Adding a forced newline can avoid that,

- asdf \\

But how to achieve that without adding \\ ?

  • My understanding is that org-fill-element is the function responsible for it, and it doesn't seem like it can be easily modified to accommodate you. Even the line-break is hard-coded into it, so you cannot replace it with something else. – wvxvw Oct 9 '18 at 15:26
  • @wvxvw where is the hard coded part in code? – FunkyBaby Oct 10 '18 at 5:09
  • github.com/emacs-mirror/emacs/blob/master/lisp/org/… this, I believe. – wvxvw Oct 10 '18 at 8:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.