From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Revilak Newsgroups: gmane.emacs.help Subject: Centering Text Display in Carbon Emacs if Only One Buffer is Open? Date: Wed, 2 Dec 2009 08:39:03 -0500 Message-ID: <20091202133903.GA409@srevilak.net> References: <20091202071904.DC0D7B361E@mxperim2.sea5.speakeasy.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" X-Trace: ger.gmane.org 1259791900 23598 80.91.229.12 (2 Dec 2009 22:11:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Dec 2009 22:11:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 02 23:11:32 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NFxQ2-0000LU-39 for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 23:11:30 +0100 Original-Received: from localhost ([127.0.0.1]:58801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFxQ1-0006LB-Nv for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 17:11:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFpQN-0007JH-Qh for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 08:39:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFpQJ-0007HX-2E for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 08:39:19 -0500 Original-Received: from [199.232.76.173] (port=49204 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFpQI-0007HT-S4 for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 08:39:14 -0500 Original-Received: from mail2.sea5.speakeasy.net ([69.17.117.4]:38774) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NFpQI-0003V3-IR for help-gnu-emacs@gnu.org; Wed, 02 Dec 2009 08:39:14 -0500 Original-Received: (qmail 16329 invoked from network); 2 Dec 2009 13:39:11 -0000 Original-Received: from pool-72-93-82-91.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[72.93.82.91]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 2 Dec 2009 13:39:10 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Wed, 02 Dec 2009 15:49:57 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70334 Archived-At: --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >From: Nocebic Meme >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=20 (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 =2Eemacs has (setq initial-frame-alist '((width . 86)=20 (height . 48))) To resize an existing frame, use (modify-frame-parameters (selected-frame)=20 '((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 --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAksWbfcACgkQX7YJI4BuyDTKCACgjKtMXzsOs2Ty2oWfDcfwYOQv F5wAnRxmOh8FkSH2dzLX66sAI/bLDSt0 =Mvtj -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--