I have this code in my .emacs file (set-default-font "Monaco 16")
. When I start emacs when it is not open (by clicking on the shortcut for instance) it starts with Monaco 16 but when I create a new frame with C-x 5 2
it starts with the old default font, which is too small to read for me. Is there a way around this?
EDIT
When loading emacs throws an error and the problem appears to be with (set-default-font "Monaco 16" nil t) in my .emacs
. What is wrong? I copy the emacs debug copy:
Debugger entered--Lisp error: (wrong-number-of-arguments #[(font-name &optional$
\203^X^@\305\304\306\"\307 _^Q\305\304\310\"\311 _^P\312\313 \314^KBC\"\210
\2039^@\312\313 \306\315 \307 \"B\310\315^H\311 \"BD\"\210*\316\317\320\$
set-default-font("Monaco 16" nil t)
eval-buffer(#<buffer *load*> nil "/Users/a/.emacs" nil t) ; Reading at buff$
load-with-code-conversion("/Users/a/.emacs" "/Users/a/.emacs" t t)
load("~/.emacs" t t)
#[nil "^H\205\276^@ \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033^@\312\307\31$
command-line()
normal-top-level()
Best Answer
set-default-font
is deprecated. But anyway, it sounds like it is doing for you what the doc string says. The way you are calling it, it should change the font only for the current frame.If you want it to change the default font for all frames, then pass it
t
as the third argument. For example:(set-default-font "Monaco 16" nil t)
.Do
C-h f set-default-font
and you will see something like this: