Created
November 11, 2010 07:21
-
-
Save baron/672151 to your computer and use it in GitHub Desktop.
e22 sw hack
This file contains 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
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