Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!hplabs!hp-sdd!megatek!spot!hollen From: hollen@spot.megatek.uucp (Dion Hollenbeck) Newsgroups: comp.emacs Subject: Re: Word Wrap in Gnu Emacs Message-ID: <458@megatek.UUCP> Date: 12 Jan 89 22:49:26 GMT References: <129@ai.cs.utexas.edu> Sender: news@megatek.UUCP Lines: 34 From article <129@ai.cs.utexas.edu>, by yvo@cs.utexas.edu (Yvonne van Olphen): > > I figured out how to set word wrap in emacs: > > M-x auto-fill-mode > > My problem is, what do I put in my .emacs_pro file to > make this mode load automatically? I looked in the manual > and tried a couple of things, but nothing worked. > > -Yvonne 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. By the way, do you know about the INFO facility ( \C-h i )? Lots of people would just say RTFM, but lots of times, people need to have a pointer to the fact that there is a manual at all (and the INFO facility is a really great one). Hope this helps you out. Dion Hollenbeck (619) 455-5590 x2814 Megatek Corporation, 9645 Scranton Road, San Diego, CA 92121 seismo!s3sun!megatek!hollen ames!scubed/