Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!cartan!weyl.Berkeley.EDU!rusty From: rusty@weyl.Berkeley.EDU (Rusty Wright) Newsgroups: comp.emacs Subject: Re: Auto fill mode Message-ID: <259@cartan.Berkeley.EDU> Date: Wed, 12-Nov-86 13:10:28 EST Article-I.D.: cartan.259 Posted: Wed Nov 12 13:10:28 1986 Date-Received: Wed, 12-Nov-86 22:20:28 EST References: <2009@mcc-pp.UUCP> <1549@oddjob.UUCP> Sender: daemon@cartan.Berkeley.EDU Reply-To: rusty@weyl.Berkeley.EDU (Rusty Wright) Organization: Math Dept. UC Berkeley Lines: 31 Here's what I have in my .emacs file: (setq text-mode-hook 'turn-on-auto-fill) If I want the hook to do more than one thing then I make a function and stick it in a .el file and autoload it, for example for tex-mode I have in my .emacs file: (setq load-path (append (list (expand-file-name "~/lib/emacs")) load-path)) (setq tex-mode-hook 'my-tex-mode-hook) (autoload 'my-tex-mode-hook "tex-mode-hook") and ~/lib/emacs/tex-mode-hook.el contains: (defun my-tex-mode-hook () "Do this stuff when in tex-mode." (progn (setq fill-column 70) (turn-on-auto-fill))) There's probably a less complicated way to do this but I decided a while ago to keep my .emacs file as small as possible and autoload as much stuff as possible. -------------------------------------- rusty c. wright rusty@weyl.berkeley.edu ucbvax!weyl!rusty