Questions tagged [paragraphs]

17 questions
3
votes
1 answer

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 application directly from source. To do that, please…
Pedro Delfino
  • 1,369
  • 3
  • 13
3
votes
3 answers

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 is the original second paragraph and it contains…
Brian Fitzpatrick
  • 2,265
  • 1
  • 17
  • 40
3
votes
0 answers

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? Is there a build-in function which performs this…
Name
  • 7,689
  • 4
  • 38
  • 84
2
votes
1 answer

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. I was wondering if there's a way to apply this operation…
oneself
  • 289
  • 1
  • 10
2
votes
2 answers

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 need a function which returns the bounds which…
user3496846
  • 378
  • 1
  • 10
2
votes
2 answers

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 33, but there does not seem to be an equivalent goto-paragraph function. I could write a function to do this for me (i.e.…
Ben
  • 587
  • 4
  • 11
2
votes
2 answers

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
  • 1,685
  • 11
  • 25
1
vote
1 answer

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 dummy text ever since the 1500s, when an unknown…
1
vote
1 answer

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-mode, and after enabling it to no effect, I…
user27075
  • 488
  • 3
  • 11
1
vote
1 answer

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-paragraph (global-set-key (kbd "M-[")…
xdavidliu
  • 143
  • 8
1
vote
2 answers

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 finding a way to do this for paragraphs. By paragraph,…
GDP2
  • 1,340
  • 9
  • 25
1
vote
0 answers

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! ;; However, suppose instead the first paragraph of the…
1
vote
1 answer

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: For learning vocabulary of a foreign language,…
Name
  • 7,689
  • 4
  • 38
  • 84
0
votes
0 answers

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_
  • 1
  • 1
0
votes
1 answer

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 with das. Is there a setting I need to change to…
Dargscisyhp
  • 370
  • 1
  • 12
1
2