Something I can never remember is how fonts are set in emacs. Here are some notes on how I figured it out.
First thing first, figure out what font you’re using. Open up your
*scratch* buffer and type:
(face-attribute 'default :font)
In your minibuffer you should see the font name. I suggest moving over to the
yanking it and putting it in your
*scratch* buffer with a
; in front of it. (Notes are useful yeah?)
Lets set a default font now, take the following and eval it in your
(set-face-attribute 'default nil :font "-outline-Monaco-normal-normal-normal-mono-16-*-*-*-c-*-iso8859-1" )
Yay! You should have changed your font, to take from the wiki this “…change the default font for the current frame, as well as future frames…”
Now if you want to change the default font, but not the current frame, run the following:
(set-face-attribute 'default t :font "-outline-Monaco-normal-normal-normal-mono-16-*-*-*-c-*-iso8859-1" )
(add-to-list 'default-frame-alist '(font . "your-font-name-here"))
Which works, but doesn’t seem to update the current buffer. If you’re testing out different fonts, personally, I’d like to see the effect without reloading.
If you haven’t realized, the
16 is the font size in the line, personally
20 feels better, but you get the point. (eh? get it? eh? point?)
If you want to find other fonts, to play around with check out here.
When you figure out what you want, you should add the
default nil line to your
init.el so every time you start emacs your font is configured.