Skip to end of metadata
Go to start of metadata

Since I can never remember, I'm forced to put this info here.

Word-wrap in Emacs is called filling. The Emacs Manual tells you this about it:

M-q
Fill current paragraph (fill-paragraph).
C-x f
Set the fill column (set-fill-column).
M-x fill-region
Fill each paragraph in the region (fill-region).
M-x fill-region-as-paragraph
Fill the region, considering it as one paragraph.
M-s
Center a line.

But of course it doesn't tell you how to actually use "C-x f". If you just type "C-x f" you get this error:

set-fill-column requires an explicit argument

To set the line wrap to 80 for example, type 'C-u 80 C-x f <RET>'

Labels
  • None
  1. Apr 25, 2008

    Hi,

    Thanks for the info, I too had serious trouble remembering how to pass arguments to functions.

    And a correction to your example, you do not need to hit <RET> after the C-u 80, instead follow with the C-x f directly.

    So the command is:
    C-u 80 C-x f