Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [fill-paragraph]

a command which wraps the words or redistributes the newlines within a paragraph as defined by the current major-mode

Filter by
Sorted by
Tagged with
9
votes
2answers
3k views

How to fill (wrap) an org mode heading?

I would like to fill (wrap) a long heading in org mode. I don't see mention of how to do so in the org manual. If I manually wrap the line by inserting a newline, org mode does not recognize the ...
1
vote
0answers
31 views

How to remove line breaks but retain paragraphs [duplicate]

I have fill-column set to 75 by default and use fill-paragraph to insert line breaks in the paragraphs of text that I write. On certain occasions though, I need to remove the line breaks but want to ...
8
votes
1answer
678 views

How to fix markdown-mode's fill-paragraph?

markdown-mode is pretty good at filling paragraphs overall, but there's one flaw that really bothers me. If a paragraph contains a line which ends in two spaces, it only starts filling never fills ...
6
votes
2answers
153 views

How can I fill-paragraph a string according to its value rather than its input syntax?

I have a docstring to a simple function, but the docstring uses many escape sequences to explain the reasoning for the function. (defun sx-encoding-normalize-line-endings (string) "Normalize the ...
15
votes
2answers
1k views

Make fill-paragraph in python docstring leave the triple-quotes on separate line

I type a python docstring all on one line like this: """ This is a long docstring. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas ...
9
votes
1answer
473 views

Overriding fill-paragraph in LaTeX mode

I would like to change the behavior of fill-paragraph in certain modes (e.g. LaTeX-mode provided by AucTeX). I could just rebind the key M-q, but I am also using evil-mode whose implementation of ...