Skip to content

Instantly share code, notes, and snippets.

@dzzzchhh
Created July 20, 2022 08:47
Show Gist options
  • Save dzzzchhh/e49d73d1b18167ffcd76273efe8031cf to your computer and use it in GitHub Desktop.
Save dzzzchhh/e49d73d1b18167ffcd76273efe8031cf to your computer and use it in GitHub Desktop.
simple interactive function for changing font in doom-emacs
(defconst dzch-fonts '("Fira Code" "Monaco"))
(defun font/change ()
(interactive)
(setq next-active-font (ivy-completing-read "Choose font: " dzch-fonts))
(setq doom-font (font-spec :family next-active-font :size 12))
(doom/reload-font))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment