Questions tagged [paragraphs]
The paragraphs tag has no usage guidance.
17
questions
3
votes
3
answers
362
views
Is it possible to shuffle paragraphs?
I'd like to be able to quickly "shuffle" the order in which all paragraphs in a region occur. Can this be easily accomplished in emacs?
For example, consider the following region.
Hello world.
This ...
3
votes
1
answer
183
views
How to select/mark a whole paragraph in org-mode?
I have the following paragraph inside an .org file:
Observation: Currently, this feature is not part of the last stable
release (version 2.2.4). Thus, users can only access it while running
the ...
3
votes
0
answers
642
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? ...
2
votes
2
answers
176
views
Navigate to a certain paragraph number
How can I navigate to a certain paragraph number?
If I want to move to the 33rd line in a file, I execute M-x goto-line <RET> 33, but there does not seem to be an equivalent goto-paragraph ...
2
votes
2
answers
253
views
Select region between empty lines
If I use (thing-at-point 'paragraph) (or mark-paragraph, for that matter), the selection isn't necessarily aware only about the empty lines. Especially, with lists and code blocks in org-mode.
So, I ...
2
votes
2
answers
136
views
pasting from websites results in 1 long line..anyway to keep the paragraph format?
when copy and pasting from any web site a paragraph and pasting into emacs with S-insert, the paragraph is always a very long line. is there anyway to keep the paragraph structure?
2
votes
1
answer
408
views
fill-paragraph on multiple paragraphs at once
I often cut and paste non "filled" text into text files (mostly in org-mode). I then have to go line by line and call fill-paragraph or org-fill-paragraph in org-mode to clean up the text. ...
1
vote
2
answers
197
views
Count the number of paragraphs
There are plenty of ways to count lines, words, and characters in Emacs. For instance, invoking M-= (AKA count-words-region) does that very thing on a given region. However, I am having trouble ...
1
vote
1
answer
174
views
shuffling the paragraphs in a buffer
Is there a package/function for shuffling the paragraphs in the buffer?
(I mean to sort the paragraphs with a random order, not changing the paragraphs, just randomizing their order).
Motivation: ...
1
vote
1
answer
40
views
Lisp function to parse paragraph into sentences separated by full stops
Is there in Emacs an inbuilt function to separate text into sentences?
Eg.,
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard ...
1
vote
1
answer
1k
views
org-indent-mode prevents first-line paragraph indents
I'm a writer (non-programmer) using org-mode mainly for prose notes/planning and writing.
I'm trying to enable first-line paragraph indents for text under Org headings. I discovered paragraph-indent-...
1
vote
1
answer
245
views
shift selection not working for rebound M-{ backward-paragraph
I slightly simplified the keys for backward-paragraph and forward-paragraph:
(global-unset-key (kbd "M-{")) ;; originally backward-paragraph
(global-unset-key (kbd "M-}")) ;; originally forward-...
1
vote
0
answers
91
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!
;; ...
0
votes
1
answer
64
views
Evil-mode's delete inner-sentence command deletes a paragraph
Evil's evil-inner-sentence seems to select an entire paragraph. For instance, if I do dis somewhere in a paragraph it deletes the entire paragraph instead of just the sentence. This is also the case ...
0
votes
0
answers
38
views
Unicode Line and Paragraph Separator is Not Properly Supported
Emacs is displaying Unicode LINE SEPARATOR and PARAGRAPH SEPARATOR (PS) as rectangle. PS also does not end a paragraph. How can I make emacs treat these characters properly?
0
votes
1
answer
52
views
Custom paragraph-start and paragraph-separate for editing *.srt files
I'm having some trouble coming up with regular expressions for variables paragraph-start and paragraph-separate to do what I want (to be defined shortly). I'm editing *.srt files (subtitles for school ...
0
votes
0
answers
109
views
Pasting text into Emacs but preserving empty lines between paragraphs
When I copy text from another application and paste it into Emacs it removes all formatting including the empty lines between paragraphs. I would like to paste into Emacs and preserve the empty lines. ...