[gnu.emacs] How to center lines in emacs ?

paulr@sequent.UUCP (Paul Reger) (09/12/89)

A quick question:  Is there a simple way to center lines in emacs ??
For example, if I am in 80 column mode, and I want to center the line:


Arrf!

It will make this line:

    	    	    	             Arrf!


(Also for 132 column mode will do analogous things.)

I'm sure someone can whip something up using elisp.  (I do not have
the document to it... :-(  )   What is the status of this anyway ???

mdb@ESD.3Com.COM (Mark D. Baushke) (09/12/89)

In article <21491@sequent.UUCP> paulr@sequent.UUCP (Paul Reger) writes:

Paul> A quick question:  Is there a simple way to center lines in emacs ??

A quick answer:

	M-x center-line RET

for documentation:
	C-h f center-line RET 

center-line:
Center the line point is on, within the width specified by `fill-column'.
This means adjusting the indentation to match
the distance between the end of the text and `fill-column'.

--
Mark D. Baushke
Internet:   mdb@ESD.3Com.COM
UUCP:	    {3comvax,auspex,sun}!bridge2!mdb