Skip to content

Instantly share code, notes, and snippets.

@alandipert
Created November 16, 2015 19:08
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 alandipert/eb84b3d61e2232d44319 to your computer and use it in GitHub Desktop.
Save alandipert/eb84b3d61e2232d44319 to your computer and use it in GitHub Desktop.
(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