Using SF Mono in Emacs

Deepak Gulati
Sep 24, 2016 · 2 min read

I love the SF Mono font that comes with macOS Sierra, but couldn’t find it in the font selection dialog in Emacs. Turns out, it’s embedded inside the bundle and thus not available to other apps. That’s easily remedied. From terminal run:

$ open /Applications/Utilities/

Select all files in this folder (Cmd+A), right-click any of the selected files and select Open. This will bring up the font preview dialog in Font Book. Click the Install Font button.

Image for post
Image for post

This will bring up another dialog saying that “Problems may have been found with some fonts during validation.” I find this copy in a computer program unacceptable. There are problems here or there are not. Anyway, since Font Book isn’t all that sure about the status of this font, we’ll go ahead and press on with the install. Check the Select all fonts checkbox and click the Install Checked button.

Image for post
Image for post

The font should now be available in the font selection dialog of any application. To use this in Emacs, simply add this to your .emacs and restart it.

(set-face-attribute ‘default nil :font “SF Mono-12”)

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store