split-height-threshold/split-width-threshold can not be nil in Emacs 21.x/22.x.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 23 Mar 2011 20:50:41 +0200
changeset 612 1c59e45f5358
parent 611 49c993d41d3f
child 613 1e7314bb84bc
split-height-threshold/split-width-threshold can not be nil in Emacs 21.x/22.x.
.emacs-my
--- a/.emacs-my	Wed Mar 23 20:42:13 2011 +0200
+++ b/.emacs-my	Wed Mar 23 20:50:41 2011 +0200
@@ -163,8 +163,10 @@
   )
 
 ;; Prefer horizontal windows splitting.
-(setq split-height-threshold nil)
-(setq split-width-threshold nil)
+(when (>= emacs-major-version 23)
+  (setq split-height-threshold nil)
+  (setq split-width-threshold nil)
+  )
 
 (setq frame-title-format "Emacs - %b")