I often cut and paste non "filled" text into text files (mostly in org-mode). I then have to go line by line and call fill-paragraph
or org-fill-paragraph
in org-mode to clean up the text. I was wondering if there's a way to apply this operation to multiple paragraphs at once maybe in a region. For example, if we have the following paragraphs in org-mode with fill-column set to 20:
- This is the first paragraph.
- This is the second paragraph.
I'd like to mark both with a region, and then have them transform into:
- This is the first
paragraph.
- This is the second
paragraph.
It seems that fill-region
is suppose to do this. I've tried calling it with various parameter combinations but it just condenses that entire region as one paragraph:
- This is the first
paragraph. - This
is the second
paragraph.
fill-forward-paragraph-function
is not being set up correctly by org-mode. You should take this up with the org-mode developers.C-x h M-q
.fill-forward-paragraph-function
?