all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to specify font for emacs on MacOSX?
@ 2009-11-12  5:39 hap 497
  2009-11-13  2:28 ` Will Willis
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: hap 497 @ 2009-11-12  5:39 UTC (permalink / raw)
  To: help-gnu-emacs

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.




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

* Re: How to specify font for emacs on MacOSX?
  2009-11-12  5:39 How to specify font for emacs on MacOSX? hap 497
@ 2009-11-13  2:28 ` Will Willis
  2009-11-13  9:50   ` Peter Dyballa
  2009-11-13  3:03 ` Chryssochoidis Christos
  2009-11-13 13:56 ` Gregory J. Grubbs
  2 siblings, 1 reply; 5+ messages in thread
From: Will Willis @ 2009-11-13  2:28 UTC (permalink / raw)
  To: help-gnu-emacs

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

try poking around in

M-x customize

or perhaps

 M-x customize-group [RET] faces [RET]

-Will

On Wed, Nov 11, 2009 at 11:39 PM, hap 497 <hap497@gmail.com> wrote:

> 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.
>
>
>

[-- Attachment #2: Type: text/html, Size: 690 bytes --]

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

* Re: How to specify font for emacs on MacOSX?
  2009-11-12  5:39 How to specify font for emacs on MacOSX? hap 497
  2009-11-13  2:28 ` Will Willis
@ 2009-11-13  3:03 ` Chryssochoidis Christos
  2009-11-13 13:56 ` Gregory J. Grubbs
  2 siblings, 0 replies; 5+ messages in thread
From: Chryssochoidis Christos @ 2009-11-13  3:03 UTC (permalink / raw)
  To: hap 497; +Cc: help-gnu-emacs


On 12 Νοε 2009, at 7:39 π.μ., hap 497 wrote:

> 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.
> 
> 


I have in .emacs

> (add-to-list 'default-frame-alist '(font . "Menlo-11"))

where "Menlo" and "11" are my preferences for the font and the size respectively.


Hope that helps.

-- C.



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

* Re: How to specify font for emacs on MacOSX?
  2009-11-13  2:28 ` Will Willis
@ 2009-11-13  9:50   ` Peter Dyballa
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2009-11-13  9:50 UTC (permalink / raw)
  To: Emacs Users


Am 13.11.2009 um 03:28 schrieb Will Willis:

>> 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?

You can set them in initial- and default-frame-alist:

	(setq initial-frame-alist
	  (append (list
	    '(border-color      . "#4e3832")
	    '(foreground-color  . "grey10")
	    '(background-color  . "AliceBlue")
	    '(active-alpha      . 0.875)
	    '(inactive-alpha    . 0.75)
	    '(font . "fontset-10pt_lucida_sans_typewriter")
	    '(top . 136) '(left . 666) '(width . 100) '(height . 57)
	  ) initial-frame-alist))

To find a suitable font (maybe save that huge list in *completions*  
buffer):

	M-x set-frame-font RET TAB TAB

Miles Bader wrote list-fonts-display, which shows the name of the  
fonts using the font.

--
Greetings

   Pete

November, n.:
	The eleventh twelfth of a weariness.
		– Ambrose Bierce, "The Devil's Dictionary"





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

* Re: How to specify font for emacs on MacOSX?
  2009-11-12  5:39 How to specify font for emacs on MacOSX? hap 497
  2009-11-13  2:28 ` Will Willis
  2009-11-13  3:03 ` Chryssochoidis Christos
@ 2009-11-13 13:56 ` Gregory J. Grubbs
  2 siblings, 0 replies; 5+ messages in thread
From: Gregory J. Grubbs @ 2009-11-13 13:56 UTC (permalink / raw)
  To: help-gnu-emacs

hap 497 <hap497@gmail.com> 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---





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

end of thread, other threads:[~2009-11-13 13:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-12  5:39 How to specify font for emacs on MacOSX? hap 497
2009-11-13  2:28 ` Will Willis
2009-11-13  9:50   ` Peter Dyballa
2009-11-13  3:03 ` Chryssochoidis Christos
2009-11-13 13:56 ` Gregory J. Grubbs

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.