Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!bbn!jr@bbn.com From: jr@bbn.com (John Robinson) Newsgroups: comp.emacs Subject: Re: Word Wrap in Gnu Emacs Message-ID: <34463@bbn.COM> Date: 12 Jan 89 18:08:51 GMT References: <129@ai.cs.utexas.edu> Sender: news@bbn.COM Reply-To: jr@bbn.com (John Robinson) Organization: BBN Systems and Technologies Corporation, Cambridge MA Lines: 28 In-reply-to: yvo@cs.utexas.edu (Yvonne van Olphen) In article <129@ai.cs.utexas.edu>, yvo@cs (Yvonne van Olphen) writes: > >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. Here's what I do: First of all, I set the default mode (what is used when there is no file-name-dependent mode to invoke) to be text-mode, by setting the emacs default mode: (setq default-major-mode 'text-mode) After text-mode is invoked, it runs its "hook", a lisp form that is evaluated (or a list of such forms) to allow for your own customizations. I get text-mode to also come up in auto-fill thus: (setq text-mode-hook 'turn-on-auto-fill) Cheers, -- /jr jr@bbn.com or bbn!jr