Created
November 16, 2015 19:08
-
-
Save alandipert/eb84b3d61e2232d44319 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
(defun dotspacemacs/increase-font-size () | |
(interactive) | |
(set-face-attribute 'default nil :height | |
(ceiling (* 1.10 | |
(face-attribute 'default :height))))) | |
(defun dotspacemacs/decrease-font-size () | |
(interactive) | |
(set-face-attribute 'default nil :height | |
(floor (* 0.9 | |
(face-attribute 'default :height))))) | |
;; Later, in your dotspacemacs/config... | |
(evil-leader/set-key "of+" 'dotspacemacs/increase-font-size) | |
(evil-leader/set-key "of-" 'dotspacemacs/decrease-font-size)) | |
;; Then you can SPC-o-f-+ to increase font size globally or SPC-o-f-- to decrease |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment