Skip to main content

Questions tagged [paragraphs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
62 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 ...
2 votes
1 answer
525 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. ...
3 votes
3 answers
399 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 ...
0 votes
0 answers
42 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
77 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 ...
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
250 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-...
3 votes
1 answer
251 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 ...
2 votes
2 answers
142 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?
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-...
0 votes
0 answers
123 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. ...
2 votes
2 answers
278 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 ...
1 vote
2 answers
209 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 ...
3 votes
0 answers
706 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
178 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 ...
1 vote
0 answers
92 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
1 answer
177 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: ...