[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSHK 1.1 Problems



>  [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<RET>.)
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<RET>
><RET>
> <RET>

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.