all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steve Revilak <steve@srevilak.net>
To: help-gnu-emacs@gnu.org
Subject: Centering Text Display in Carbon Emacs if Only One Buffer is Open?
Date: Wed, 2 Dec 2009 08:39:03 -0500	[thread overview]
Message-ID: <20091202133903.GA409@srevilak.net> (raw)
In-Reply-To: <d1c7a887-c323-4ac9-b7d1-ac12cdb7aa7b@b15g2000yqd.googlegroups.com>

[-- 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 --]

      reply	other threads:[~2009-12-02 13:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091202133903.GA409@srevilak.net \
    --to=steve@srevilak.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.