Created
August 24, 2012 07:00
-
-
Save blackball/3446925 to your computer and use it in GitHub Desktop.
inc-de-crease-fontsize
This file contains hidden or 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
| ;; 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