Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!csd4.milw.wisc.edu!bbn!jr@bbn.com From: jr@bbn.com (John Robinson) Newsgroups: comp.emacs Subject: Re: Word Wrap in Gnu Emacs Message-ID: <34526@bbn.COM> Date: 13 Jan 89 22:08:30 GMT References: <129@ai.cs.utexas.edu> <458@megatek.UUCP> Sender: news@bbn.COM Reply-To: jr@bbn.com (John Robinson) Organization: BBN Systems and Technologies Corporation, Cambridge MA Lines: 26 In-reply-to: hollen@spot.megatek.uucp (Dion Hollenbeck) In article <458@megatek.UUCP>, hollen@spot (Dion Hollenbeck) writes: >This is right out of the INFO facility of emacs under the menu items >"emacs, init, examples" (this puts you three levels down): > > * Turn on Auto Fill mode automatically in Text mode and related modes. > > (setq text-mode-hook > '(lambda () (auto-fill-mode 1))) > > >Just add the above lines (less comment line) and this should work for you. slightly better is the following (in simple.el, hence preloaded): (defun turn-on-auto-fill () "Unconditionally turn on Auto Fill mode." (auto-fill-mode 1)) allowing: (setq text-mode-hook 'turn-on-auto-fill) Now, hooks can also be lists, so it might be better to make it a list. -- /jr jr@bbn.com or bbn!jr