Questions tagged [fill-paragraph]
a command which wraps the words or redistributes the newlines within a paragraph as defined by the current major-mode
17
questions with no upvoted or accepted answers
5
votes
0answers
48 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 ...
4
votes
0answers
116 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
87 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
137 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
1answer
10 views
Auto fill of # style comments in Emacs python-mode not working
My expectation is that, like for comments in other language modes besides python, I could write a long comment, say 150 chars, and it would automatically fill, i.e., newline and indent with comment ...
1
vote
0answers
15 views
how to set a fill suffix?
I want to fill (wrap) long lines at n characters, ensuring that each new line ends with "///". (That is the "continuation character" for long lines in Stata code.
So that something like this
This is ...
1
vote
0answers
64 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
199 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
108 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
44 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
68 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
193 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
104 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
153 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
17 views
how to get line wrap to had return at puncuation
I've see a few similar questions:
Editing files with one-sentence-per-line
https://stackoverflow.com/questions/41637313/how-to-make-a-function-that-straights-out-each-sentence-in-a-paragraph-to-...
0
votes
0answers
145 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? ...