Take the 2-minute tour ×

I'm using emacs in HTML mode. When I type about 70 columns of text, it automatically performs a carriage return, breaking up the text over two lines. Is there a way to disable and/or modify this?

share|improve this question
add comment

1 Answer

up vote 11 down vote accepted

You probably have auto-fill mode turned on. Just do M-x auto-fill-mode to disable it. For a more permanent solution, add

(add-hook 'html-mode-hook 'turn-off-auto-fill)

to your .emacs file.

share|improve this answer
Thanks, thats just what I needed. –  mksuth Aug 8 '10 at 20:45
add comment

Your Answer


