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 Answers 2


Just run fill-paragraph bound by default to M-q

Depending on where you are copying from, remember that the paragraph is one logical object, how it shows depends on the width of the browser on your screen. Emacs is doing the correct thing by not inserting extra newlines.

  • enabling auto-fill-mode works too. But, you'd have to enter a space after yanking a paragraph into emacs for it to automatically fill. Commented Jan 2, 2017 at 17:41

You might also consider pasting in Freeplane Mindmap and then copy the mindmap head and paste it into emacs. The mindmap tree will depend on indentations. If your website text is aligned correctly, you should get the needed paragraphs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.