all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Centering Text Display in Carbon Emacs if Only One Buffer is Open?
@ 2009-12-02  2:15 ` Nocebic Meme
  2009-12-02 13:39   ` Steve Revilak
  0 siblings, 1 reply; 2+ messages in thread
From: Nocebic Meme @ 2009-12-02  2:15 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Centering Text Display in Carbon Emacs if Only One Buffer is Open?
  2009-12-02  2:15 ` Centering Text Display in Carbon Emacs if Only One Buffer is Open? Nocebic Meme
@ 2009-12-02 13:39   ` Steve Revilak
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Revilak @ 2009-12-02 13:39 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1389 bytes --]

>From: Nocebic Meme <nocebicmeme@gmail.com>

>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 #2: Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-02 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20091202071904.DC0D7B361E@mxperim2.sea5.speakeasy.net>
2009-12-02  2:15 ` Centering Text Display in Carbon Emacs if Only One Buffer is Open? Nocebic Meme
2009-12-02 13:39   ` Steve Revilak

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.