Path: news.uiowa.edu!news.physics.uiowa.edu!math.ohio-state.edu!howland.reston.ans.net!newsfeed.internetmci.com!in2.uu.net!van-bc!ddsw1!news.mcs.net!not-for-mail From: bird@MCS.COM (J. L. Walters) Newsgroups: comp.sys.apple2 Subject: Re: GSHK 1.1 Problems Date: 29 May 1996 08:38:18 -0500 Organization: /usr/lib/news/organi[sz]ation Lines: 59 Message-ID: <4ohk0a$71u@Mars.mcs.com> References: <4ofhl2$bpl@news.ysu.edu> <4oganh$sjk@seeker.the-hermes.net> <4oh31q$rva@gap.cco.caltech.edu> NNTP-Posting-Host: mars.mcs.com > [Hint: press return every 70 characters or so. Makes it much > easier to quote you] For any number of reasons text will show up that isn't quite what one would want it to be. The way I deal with it is to use the text editor "emacs." (Even if you are a vi user you will be well served learning a little bit about emacs.) In my root directory in the .emacs file I excerpt the following: (global-set-key [kp-f2] 'fill-paragraph) (global-set-key [kp-f3] 'fill-region) (setq default-major-mode 'text-mode) (setq fill-column 72) (setq line-number-mode 1) (add-hook 'text-mode-hook 'turn-on-auto-fill) --- End .emacs excerpt --- (global-set-key [kp-f2] 'fill-paragraph) says that when I hit the equal (=) key on the IIgs numeric keypad I want emacs to fill the current paragraph (where the cursor is). (Non IIgs users or those not willing to set up the .emacs file can type: ESC fill-paragraph.) One really cool thing about this command is if you have text of the form: > text short > text long line > text and hit the = key the three lines will be filled based on the fill-column you have set to with the quote marks (>) set up properly. ONE thing, lines of the form: >text short >text long line >text will not come out correctly. For this case you have to place the cursor above the text in question and type: ESC x replace-string > > Followed by the fill-paragraph command. For those wanting to pursue this further there is no better book than: Name: GNU Emacs Manual Auth: Richard M. Stallman Pub: Free Software Foundation ISBN: 1-882114-04-3 Kind Regards, -- Joe Walters: bird@mcs.com or J.L.Walters@genie.com The sound of your horn is far sweeter if blown by somebody else.