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?


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. – Chakravarthy Raghunandan Jan 2 '17 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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