Skip to content

Instantly share code, notes, and snippets.

@baron
Created November 11, 2010 07:21
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 baron/672151 to your computer and use it in GitHub Desktop.
Save baron/672151 to your computer and use it in GitHub Desktop.
e22 sw hack
diff --git a/switch-window.el b/switch-window.el
index 444ea6f..b223ddd 100644
--- a/switch-window.el
+++ b/switch-window.el
@@ -100,7 +100,9 @@ from-current-window is not nil"
;; make it so that the huge number appears centered
(dotimes (i lines-before) (insert "\n"))
(dotimes (i margin-left) (insert " "))
- (insert label)))
+ (if (fboundp 'text-scale-increase)
+ (insert label)
+ (insert (propertize label 'face (list :height (* (* h 100) (/ w h)))))))
(set-window-buffer win buf)
buf))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment