The commands fill-region
(and fill-paragraph
) breaks lines in a region (and paragraph) to a predefined width. How does one achieve the opposite effect?
Given a buffer, say markdown or org, where paragraphs are separated by two newlines, how does one unfill (remove non-paragraph related line breaks) regions and paragraphs?
There are some hacks to do this, however wanted to know what is the canonical way:
- Set the variable
fill-column
to a high value and runfill-paragraph
. - Use a custom macro.