Emacs lisp interactive function to change font size in GUI easily.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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