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