From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gregory@dynapse.com (Gregory J. Grubbs) Newsgroups: gmane.emacs.help Subject: Re: How to specify font for emacs on MacOSX? Date: Fri, 13 Nov 2009 06:56:47 -0700 Message-ID: <87ws1uply8.fsf@dynapse.com> References: <5ff1d48c0911112139x437394e2w68658ef2422cace8@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258120677 30348 80.91.229.12 (13 Nov 2009 13:57:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Nov 2009 13:57:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 13 14:57:50 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 1N8weq-0000OV-Le for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Nov 2009 14:57:49 +0100 Original-Received: from localhost ([127.0.0.1]:44948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8weq-0003w1-5D for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Nov 2009 08:57:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8weR-0003vm-P0 for help-gnu-emacs@gnu.org; Fri, 13 Nov 2009 08:57:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8weM-0003vC-2u for help-gnu-emacs@gnu.org; Fri, 13 Nov 2009 08:57:22 -0500 Original-Received: from [199.232.76.173] (port=43814 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8weL-0003v9-St for help-gnu-emacs@gnu.org; Fri, 13 Nov 2009 08:57:17 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:43483) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N8weK-0003oB-PA for help-gnu-emacs@gnu.org; Fri, 13 Nov 2009 08:57:17 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N8weE-0008WJ-VU for help-gnu-emacs@gnu.org; Fri, 13 Nov 2009 14:57:10 +0100 Original-Received: from 72.42.83.192 ([72.42.83.192]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Nov 2009 14:57:10 +0100 Original-Received: from gregory by 72.42.83.192 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Nov 2009 14:57:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 72.42.83.192 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:Dl3cqX2mkU9gmw9ZM+eJaYMdJ+I= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:69711 Archived-At: hap 497 writes: > Hi, > > How to specify font for emacs on MacOSX? > I am using emacs , not aquamacs. How can I switch to use a different > font in my .emacs file? > > Thank you. To get the standard OS X font selection, you can use M-x menu-set-font I have the following in my init file, set to use Inconsolata font on wherever I can: --8<---------------cut here---------------start------------->8--- (cond ((or (eq window-system 'mac) (eq window-system 'ns)) (set-face-font 'default '"-apple-inconsolata-medium-r-normal--16-0-72-72-m-0-iso10646-1")) ((and (eq window-system 'x) (eq emacs-major-version 23)) (set-face-font 'default '"-unknown-Inconsolata-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1") (add-to-list 'default-frame-alist '(font . "-unknown-Inconsolata-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1")) ) ((eq window-system 'x) (set-face-font 'default '"10x20"))) --8<---------------cut here---------------end--------------->8---