Skip to content

Instantly share code, notes, and snippets.

@mecab
Created August 5, 2019 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mecab/1bc847e51034ae1e11b813b79f7da553 to your computer and use it in GitHub Desktop.
Save mecab/1bc847e51034ae1e11b813b79f7da553 to your computer and use it in GitHub Desktop.
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."
(interactive
(list
(read-number
(format "Input font size (current=%d): " (face-attribute 'default :height))
nil)))
(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