monotux.tech

Setting default fonts in Emacs

Emacs, typography

I recently announced .emacs bankruptcy (again) and I’ve enjoyed the process of building up my config from scratch.

A few things are tedious to google, like how to set the default font. Below is how to do that:

(add-to-list 'default-frame-alist '(font . "JetBrains Mono-12"))

;; Another, slightly fancier method with use-package:
(use-package emacs
  :init (add-to-list 'default-frame-alist '(font . "JetBrains Mono-15")))