Skip to content

Fonts and Zoomingλ︎

Any font currently installed in the operating system can be used for Spacemacs.

practicalli/spacemacs-config sets Fira Code font, which is designed for working with source code and also supports ligatures.

Spacemacs will use Source Code Pro by default.

Fira Codeλ︎

Fira Code is a free mono-spaced font with programming ligatures, with specific ligatures for Clojure.

Fira Code font programming ligatures for Clojure

Space f e d to open the Spacemacs configuration file and edit the dotspacemacs-default-font values

   dotspacemacs-default-font '("Fira Code"
                               :size 12.0
                               :weight normal
                               :width normal)

Ubuntu Monoλ︎

Ubuntu Mono is also a great font to use for code. This font is available from the Ubuntu Font Family and on all Ubuntu operating systems (and derivatives).

Space f e d to open the Spacemacs configuration file and edit the dotspacemacs-default-font values

   dotspacemacs-default-font '("Ubuntu Mono"
                               :size 16
                               :weight normal
                               :width normal)

Zoom Emacs Frame and Font Sizeλ︎

If you attach an external monitor, share your screen, give demos or presentations in Emacs, then you may need to scale the font size of your buffer or if using multiple buffers, zoom the size of your Emacs frame.

Use the Spacemacs Zoom menu to enter a transient state that will let you zoom text or frame size.

Key binding Description
Space z f Zoom all Emacs frames, including the which-key and helm pop-up buffers
Space z x Scale the font of the current buffer

Update font size

If font or frame size is often changed, edit your .spacemacs configuration, SPC f e d and change the :size setting in dotspacemacs-default-font.