From 87277a5a49cf175906cab62714a91bd41e143e6f Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Mon, 30 Sep 2019 14:08:27 +0200 Subject: Adjust window splitting threshold --- lisp/init-mac.el | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lisp/init-mac.el') diff --git a/lisp/init-mac.el b/lisp/init-mac.el index a5f3965..beedcf2 100644 --- a/lisp/init-mac.el +++ b/lisp/init-mac.el @@ -5,12 +5,14 @@ (set-face-attribute 'default nil :family font-family) (set-face-attribute 'default nil :height 140) - ;; fira code at 14 pt may result in (window-total-width) being - ;; exactly 160 which makes sensible splitting less sensible + ;; fira code at 14 pt may result in (window-total-width) being exactly 160, + ;; or (window-total-height) being exactly 80, which makes sensible splitting + ;; less sensible ;; - ;; decrement split-width-threshold so that vertical splits are still - ;; preferred in most cases - (setq split-width-threshold (- split-width-threshold 10)))) + ;; adjust thresholds so that vertical splits are still preferred in most + ;; cases + (setq split-width-threshold (- split-width-threshold 10)) + (setq split-height-threshold (+ split-height-threshold 10)))) ;; configure modifiers (setq mac-option-modifier 'super) -- cgit v1.2.3