Questions tagged [paragraphs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
Brian Fitzpatrick's user avatar
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 ...
Pedro Delfino's user avatar
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? ...
Name's user avatar
  • 7,749
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 ...
Ben's user avatar
  • 597
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 ...
user3496846's user avatar
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?
zeltak's user avatar
  • 1,695
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. ...
oneself's user avatar
  • 301
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 ...
GDP2's user avatar
  • 1,340
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: ...
Name's user avatar
  • 7,749
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 ...
Emmanuel Goldstein's user avatar
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-...
user27075's user avatar
  • 508
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-...
xdavidliu's user avatar
  • 163
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! ;; ...
Resigned June 2023's user avatar
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 ...
Dargscisyhp's user avatar
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?
user_'s user avatar
  • 1
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 ...
user1950099's user avatar
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. ...
Edman's user avatar
  • 1,177