help-gnu-emacs
[Top][All Lists]
Advanced

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

Centering Text Display in Carbon Emacs if Only One Buffer is Open?


From: Steve Revilak
Subject: Centering Text Display in Carbon Emacs if Only One Buffer is Open?
Date: Wed, 2 Dec 2009 08:39:03 -0500
User-agent: Mutt/1.5.19 (2009-01-05)

From: Nocebic Meme <address@hidden>

I was wondering if there is a way to center the text displayed in
carbon emacs.  I've added this to my .emacs file:

(setq-default fill-column 66)
(add-hook 'text-mode-hook 'turn-on-auto-fill)

But with my font size, it leaves a lot of blank space on the right
hand side of the screen where the text wraps.  Is there any way to
have emacs put the text in the center of the screen for a more

I was about to suggest M-x center-line, but realized that's not what
you want to do.  You don't want to reformat the text -- you're trying
to change its horizontal position in the buffer.

You could try enlarging the fringes, something like
   (fringe-mode '(50 . 50))

Respectively, the two numbers specify the pixel width of the left and
right fringes.

To restore the default fringe setting:

   (fringe-mode nil)

Alternatively, you can experiment with changing the window size.  My
.emacs has

(setq initial-frame-alist '((width . 86) (height . 48)))

To resize an existing frame, use

(modify-frame-parameters (selected-frame) '((width . 86)
                           (height . 48)))

Finally, you can experiment with changing the default face (if you
haven't already done so).

  M-x customize-face RET default RET

Steve

Attachment: pgp_oe4Vw8Ont.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]