Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Emacs lisp interactive function to change font size in GUI easily.
(defun change-font-size (size)
"Change font size (clearly `:height` in `face-attribute`) to given SIZE."
(format "Input font size (current=%d): " (face-attribute 'default :height))
(set-face-attribute 'default nil :height size)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment