Created
April 25, 2016 23:19
-
-
Save bmastenbrook/244aa6264f1c28b33d4ed7ac962e954e to your computer and use it in GitHub Desktop.
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
(defvar my-emacs--font-size 12) | |
(defun my-emacs-font () | |
(format "-*-Ubuntu Mono-normal-normal-normal-*-%d-*-*-*-m-0-iso10646-1" my-emacs--font-size)) | |
(add-to-list 'default-frame-alist `(font . ,(my-emacs-font))) | |
(defun font-bigger (size) | |
(interactive "p") | |
(if (eql size 1) (setq size (+ my-emacs--font-size 2))) | |
(setq my-emacs--font-size size) | |
(setq default-frame-alist (cons `(font . ,(my-emacs-font)) | |
(assq-delete-all 'font default-frame-alist))) | |
(set-frame-font (my-emacs-font) nil t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment