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

1 Comment
Hide/Show CommentsApr 25, 2008
Heikki Rauhala
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 theC-x fdirectly.So the command is:
C-u 80 C-x f