home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / emacs / help / 3852 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.6 KB  |  46 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!mstar!mstar!bob
  3. From: bob@MorningStar.Com (Bob Sutterfield)
  4. Subject: word wrapping (was Re: A better spell checker?)
  5. In-Reply-To: andy@mercury.cs.clemson.edu's message of Mon, 24 Aug 1992 15: 23:50 GMT
  6. Message-ID: <BOB.92Aug26102433@volitans.MorningStar.Com>
  7. Sender: news@MorningStar.Com
  8. Nntp-Posting-Host: volitans.morningstar.com
  9. Organization: Morning Star Technologies
  10. References: <1992Aug18.224145.8409@inmet.camb.inmet.com>
  11.     <1992Aug24.152350.26055@hubcap.clemson.edu>
  12. Date: Wed, 26 Aug 1992 14:24:43 GMT
  13. Lines: 31
  14.  
  15. In article <1992Aug24.152350.26055@hubcap.clemson.edu> andy@mercury.cs.clemson.edu (Andrew J. Greenshields N3IGS) writes:
  16.    ...the version [of emacs] they have here does not word wrap at the
  17.    end of each line.  How can I alter it so that it will do this?
  18.  
  19. Insert lines like this in your ~/.emacs:
  20.  
  21. (setq text-mode-hook 'turn-on-auto-fill)
  22. (setq outline-mode-hook 'turn-on-auto-fill)
  23.  
  24. And maybe
  25.  
  26. (setq latex-mode-hook
  27.       '(lambda ()
  28.      (setq ispell-filter-hook "detex")
  29.      (setq ispell-filter-hook-args '("-lw"))
  30.      (turn-on-auto-fill)))
  31. (setq tex-mode-hook
  32.       '(lambda ()
  33.      (setq ispell-filter-hook "detex")
  34.      (setq isell-filter-hook-args '("-w"))
  35.      (turn-on-auto-fill)))
  36.  
  37. True blockheads will like
  38.  
  39. (setq auto-fill-hook 'do-auto-justify)
  40.  
  41.  
  42. This way, whenever you visit a file in text, outline, or {la}tex mode
  43. (rather than in Fundamental mode, like *scratch*), you'll get
  44. auto-filling, which is Emacs' name for word wrapping.  To switch to
  45. text (and therefore auto-fill) mode in a buffer, say "M-x text-mode".
  46.