Questions tagged [fill-paragraph]

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

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
44 views

org-fill-paragraph in a list with checkboxes doesn't take into account the checkboxes

I'm trying to figure out a way to change the behavior of org-fill-paragraph for a list with checkboxes. I would like the indentation to take into account the checkbox, but here is what I see: - This ...
3
votes
0answers
105 views

Incorrect filling of Python docstrings in pep257 mode

I have python-fill-docstring-style set to pep-257 (default) and I'm trying to fill docstring paragraphs. However, python mode does not count """ towards the number of characters, nor does it consider ...
3
votes
0answers
53 views

fill-paragraph chokes on semicolons

I use mutt for email (outside of emacs) and set my EDITOR to an emacsclient invocation. Thus, mutt spawns emacsclient in the same terminal when I want to compose an E-mail, then catches the output ...
3
votes
0answers
83 views

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

This is almost the same question as this one, but not quite. I happen to like the docstring style def f(): """ docstring another line """ so in emacs I have python-fill-docstring-...
2
votes
0answers
132 views

Prevent fill-paragraph from breaking Org Mode inline source block

The fill-paragraph function isn't aware of the inline Org Mode source block syntax and is able to destroy it. For instance the following paragraph Lorem ipsum dolor sit amet, consectetur src_emacs-...
1
vote
0answers
57 views

Why does Emacs fill-paragraph corrupt this paragraph layout?

To reproduce what appears to be a bug that I'm encountering, create a new buffer with Emacs 26.1 (Fundamental mode is fine), and paste the following text in: Without message passing to worry about, ...
1
vote
0answers
172 views

How to add additional comment syntax to a mode?

In general, given a major mode with a defined comment syntax, what do I have to define or change to add a new comment syntax? By "adding", I mean setting some new characters so that they work with ...
1
vote
0answers
97 views

indent items in auctex

What I would like to achieve is a deeper indentation of lines in items in Auctex. \begin{itemize} \item This is what I would like to achieve. The beginning of the second line aligns with ...
1
vote
0answers
42 views

org-fill-paragraph leaves a comma at end of C style comment

In a src block when there is a C style comment /* ... */ doing an org-fill-paragraph would always put a comma just before the last star, like this: /* Some comment ,*/ Is there a way to stop it from ...
1
vote
0answers
61 views

auto-fill-mode fails in comment with empty second line

Consider the following comments: ;; This is the first line of a comment. ;; ;; This is the second line, which begins a paragraph. If I have ;;auto-fill-mode enabled, I lose the leading space! ;; ...
1
vote
0answers
179 views

Prevent fill-paragraph from breaking LaTeX displayed equations in Org Mode

In Org Mode fill-paragraph brakes the following paragraph (containing LaTeX displayed equation) * Some headline Text text text \[ e=mc^2 \] text text text. into * Some headline ...
1
vote
0answers
101 views

Run fill-paragraph for content on org-mode export

How can you run fill-paragraph on an exported document? fill-paragraph/auto-fill-mode distribute and insert newlines which help when reading a document in an editor that doesn't necessarily wrap long ...
1
vote
0answers
152 views

How to get fill-paragraph in a scala multi-line comment to wrap?

Emacs is my weapon of choice for documenting code, not least because of its great support for formatting comments. However, there is one thing that is slowing me down in scala-mode2. When I have a ...
0
votes
0answers
119 views

How to justify all paragraphs of the currect buffer?

I would like to fill justify all paragraphs in the current buffer if no region is selected. I wrote the the following function which performs this job. Is there a better way to write this function? ...