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
8
votes
1answer
692 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 ...
18
votes
2answers
1k views

Is there fully-automatic fill-paragraph-mode for code comments?

I'm looking for a minor mode to keep paragraphs filled at all times while typing (similar to what aggressive-indent-mode does for indentation). It also needs to be smart enough to only fill comments (...
6
votes
2answers
154 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 ...
16
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 ...
7
votes
3answers
998 views

Copy region from emacs without newlines

I would like to be able to easily select a region of text from Emacs and then paste it into another app or browser - with all the extra fill-paragraph newlines removed so that the paragraph display in ...
28
votes
4answers
2k views

Editing files with one-sentence-per-line

A bit of background. I’m trying to version-control my latex documents, and the effectiveness of this initiative would be greatly improved if I adopt a one-sentence-per-line approach. For instance, ...
11
votes
3answers
105 views

fill-paragraph marks file as changed, even if it didn't do anything

Whenever I call fill-paragraph, the buffer is always marked as modified, even if the command had no effect (i.e. if the paragraph was already filled). It also creates an empty undoable action (easily ...
9
votes
1answer
478 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 ...