🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #8301

Re: Word Wrap in Gnu Emacs

#8301
From: John Robinson
Date: Fri, 13 Jan 1989 22:08
26 lines
1283 bytes
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
Technical Details
Message-ID: <34526@bbn.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!csd4.milw.wisc.edu!bbn!jr@bbn.com
References: <129@ai.cs.utexas.edu> <458@megatek.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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)