Skip to content

Instantly share code, notes, and snippets.

@baron
Created November 10, 2010 05:19
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/670392 to your computer and use it in GitHub Desktop.
Save baron/670392 to your computer and use it in GitHub Desktop.
diff --git a/switch-window.el b/switch-window.el
index 1f63598..d2c7b3c 100644
--- a/switch-window.el
+++ b/switch-window.el
@@ -95,7 +95,8 @@ from-current-window is not nil"
(lines-before (/ increased-lines 2))
(margin-left (/ w h) ))
;; increase to maximum switch-window-increase
- (text-scale-increase scale)
+ (when (> emacs-major-version 22)
+ (text-scale-increase scale))
;; make it so that the huge number appears centered
(dotimes (i lines-before) (insert "\n"))
(dotimes (i margin-left) (insert " "))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment