15

There are (in my mind) two types of word wrapping:

  • Hard : Actually edit the file to have lines of a maximum length
  • Soft : Just wrap in the editor, but the underlying file still has long lines.

I can't figure out how to make Emacs do these two different types of word wrapping (most people just talk about "word wrap", without distinguishing which they are talking about).

Chris Jefferson
  • 253
  • 2
  • 6

1 Answers1

22

Emacs uses visual-line-mode for the soft-wrap and auto-fill-mode (and/or refill-mode) for the hard-wrap. See What is the difference between refill-mode and auto-fill-mode? for the difference between the two.

Keith Pinson
  • 269
  • 1
  • 3
  • 25
Stefan
  • 26,404
  • 3
  • 48
  • 85