Skip to content

Instantly share code, notes, and snippets.

@blackball
Created August 24, 2012 07:00
Show Gist options
  • Select an option

  • Save blackball/3446925 to your computer and use it in GitHub Desktop.

Select an option

Save blackball/3446925 to your computer and use it in GitHub Desktop.
inc-de-crease-fontsize
;; overide the default changing font size bindings
;; to make changing more subtle
(defun local-increase-font-size ()
(interactive)
(set-face-attribute 'default
nil
:height
(ceiling (* 1.03 (face-attribute 'default :height)))))
(defun local-decrease-font-size ()
(interactive)
(set-face-attribute 'default
nil
:height
(floor (* 0.98 (face-attribute 'default :height)))))
(global-set-key (kbd "C-+") 'local-increase-font-size)
(global-set-key (kbd "C--") 'local-decrease-font-size)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment