[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linebreak after 78characters

From: rgb
Subject: Re: linebreak after 78characters
Date: 26 Aug 2005 13:10:02 -0700
User-agent: G2/0.2

> I just wondered where I can set permanently the option, that emacs breaks eac
> line after 78characters. I can`t find it on the menu.

If you want auto-fill-mode to be on when in a particular mode you
need to add this to the mode's hook.

(add-hook 'foo-mode-hook  'auto-fill-mode)

If you want it on for every buffer regardless of mode you could try
putting it on the after-change-major-mode-hook but that won't cover
fundamental mode.

Personally I use (global-set-key [f12] 'auto-fill-mode) so I can
toggle it on and off with a single key no matter what mode I'm in.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]