Skip to content

Instantly share code, notes, and snippets.

@gadmyth
Created September 27, 2014 16:04
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 gadmyth/53123f030b6161dca116 to your computer and use it in GitHub Desktop.
Save gadmyth/53123f030b6161dca116 to your computer and use it in GitHub Desktop.
Number-mode not scale (using ov instead of text-scale)
(require 'ov)
(defun ov-double-height ()
(interactive)
(ov (point-min) (point-max) '(face (:height 1.25))))
(defun ov-half-height ()
(interactive)
(ov (point-min) (point-max) '(face (:height 0.8))))
(defun ov-reset-height ()
(interactive)
(ov-clear))
(global-set-key (kbd "C-x C-=") 'ov-double-height)
(global-set-key (kbd "C-x C--") 'ov-half-height)
(global-set-key (kbd "C-x C-0") 'ov-reset-height)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment