In Emacs, how do I run auto-fill mode by default?
To turn on auto-fill mode just once for one buffer, enter M-x
auto-fill-mode .
To turn it on for every buffer in a certain mode, you must use the
hook for that mode. For example, to turn on auto-fill mode for all
text buffers, include the following in your .emacs file:
(add-hook 'text-mode-hook 'turn-on-auto-fill)
If you want to turn on auto-fill mode for all major modes, include the
following:
(setq-default auto-fill-function 'do-auto-fill)
This information comes from the Emacs FAQ.
At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?
Last modified on August 22, 2008.







