[OS X Emacs] Setting default font in .emacs for Aquamacs 1.4

Hampus Edvardsson hampus.edvardsson at gmail.com
Sat Jun 28 18:00:53 EDT 2008


Hi all,
I have a question about setting the default font for Aquamacs 1.4.

 From within Aquamacs, I can succesfully set the font via M-X set- 
default-font, and select the font I want: "-apple-monaco-medium-r- 
normal--10-120-72-72-m-120-mac-roman". The font is set correctly.  
Running M-X describe-font informs me that the font is indeed the one I  
want:

name (opened by): -apple-monaco-medium-r-normal--10-120-72-72-m-120- 
mac-roman
       full name: -apple-monaco-medium-r-normal--10-100-72-72-m-100- 
mac-roman
            size:  6
          height: 13
baseline-offset:  0
relative-compose:  0

But of course, setting the font this was means it has be be reset for  
each session, and also when new frames are opened, annyingly.

Instead, I want ot add this setting to my .emacs file, so I've added  
the following line to it:

(set-default-font "-apple-monaco-medium-r-normal--10-120-72-72-m-120- 
mac-roman")

But this does nothing. Running M-X descibe-font tells me that the font  
is:

name (opened by): -apple-monaco-medium-r-normal--12-120-72-72-m-120- 
mac-roman
       full name: -apple-monaco-medium-r-normal--12-120-72-72-m-120- 
mac-roman
            size:  7
          height: 15
baseline-offset:  0
relative-compose:  0

No suspicious errors are reported to the *Messages* buffer when  
the .emacs file is executed. Any ideas of what I am doing wrong?

/Hampus Edvardsson



More information about the MacOSX-Emacs mailing list