From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Can I ask a Simple question? Date: Wed, 4 Oct 2006 13:58:05 -0700 Message-ID: References: <1159988801.087342.3040@c28g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1159995686 4382 80.91.229.2 (4 Oct 2006 21:01:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Oct 2006 21:01:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 04 23:01:22 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GVDqd-0002U6-0q for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Oct 2006 23:00:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVDpd-0007zC-U5 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Oct 2006 16:59:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GVDpS-0007xq-WD for help-gnu-emacs@gnu.org; Wed, 04 Oct 2006 16:58:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GVDpK-0007qG-QJ for help-gnu-emacs@gnu.org; Wed, 04 Oct 2006 16:58:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVDpK-0007qD-Li for help-gnu-emacs@gnu.org; Wed, 04 Oct 2006 16:58:50 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GVDvR-00064v-H3 for help-gnu-emacs@gnu.org; Wed, 04 Oct 2006 17:05:10 -0400 Original-Received: from rgmsgw01.us.oracle.com (rgmsgw01.us.oracle.com [138.1.186.51]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id k94Kw7A0012319; Wed, 4 Oct 2006 14:58:07 -0600 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw01.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with SMTP id k94Kw6sf028800; Wed, 4 Oct 2006 14:58:06 -0600 Original-To: , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <1159988801.087342.3040@c28g2000cwb.googlegroups.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-MIME-Autoconverted: from 8bit to quoted-printable by rgminet01.oracle.com id k94Kw7A0012319 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:37806 Archived-At: > When i start emacs, i always hold down the shift key and left click= my > mouse to get font select. You see, i cannot read the small > default font and need to make it larger. This is the value i always select: > > Courier 18 > > *My Simple Question:* Please show me exactly what line i need to wr= ite > into a .emacs configuration file so that this font size is loaded > automatically each time i start up emacs? If you're ~/.emacs file is ok, instead of touching it, just try runni= ng Emacs like this: $ emacs -fn 10x20 foo.txt and see how you like it. If you really want that courier font, use: $ emacs -fn -adobe-courier-medium-r-normal--18-180-75-75-m-110-iso8859-1 foo.txt After you've picked a font you like, so you don't have to always type "-fn blah...", put it into your ~/.Xresources file (create the file i= f you don't already have one) like so: emacs.font: -adobe-courier-medium-r-normal--18-180-75-75-m-110-iso8859-1 then log out and log back in to X. To pick out a font and get its full name (like that -adobe-courier-med...) I run NEdit and use its built in font selectio= n tool. I tried xfontsel, but it wasn't helpful. Others have mentioned how to specify a font using .emacs or .Xresources. Here is some info on trying out different fonts interactively, to discove= r what you are most comfortable with: http://www.emacswiki.org/cgi-bin/wiki/SetFonts. To dynamically change font size (only), try one of these libraries: - http://www.emacswiki.org/cgi-bin/emacs/zoom-frm.el (commands `zoom-frm-= in=92 , `zoom-frm-out=92) - http://www.emacswiki.org/cgi-bin/emacs/doremi-frm.el (command `doremi-font-size') To dynamically try different fonts (without changing the size): - http://www.emacswiki.org/cgi-bin/wiki/Icicles (command `icicle-font') - http://www.emacswiki.org/cgi-bin/emacs/doremi-frm.el (command `doremi-font') For command `icicle-font', you can use `S-TAB' to complete any font-name substrings (e.g. family, style, weight), and you can use `C-next' (Contro= l Page Down) to cycle among the matching font names, seeing the effect immediately. Hit `C-g' to cancel and return to the font you had, or hit `RET' to keep the current choice in the minibuffer. For example: M-x icicle-font Type "Courier", hit S-TAB Cycle among all Courier fonts with `C-next'. Or, type "Courier" and then hit `M-*' to type another pattern to match, f= or example "bold". Use `C-next' to cycle among Courier fonts with that style. You get the idea. You can match any number of substrings, in any order, b= y repeated use of `M-*'. Alternatively, you can match against a regular expression (e.g. "Courier.*bold"). After you find a font you like, you can set it as the default font in you= r .emacs or .Xresources file, as others have explained. HTH.