diff options
author | Martin Polden <mpolden@mpolden.no> | 2019-09-30 14:08:27 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2019-09-30 14:08:27 +0200 |
commit | 87277a5a49cf175906cab62714a91bd41e143e6f (patch) | |
tree | f8842ee6ca4f118c1c6f007b7cc7abc1c963fc0f /lisp | |
parent | 20a7d586eb4483d11a7ac134294328e1a473c31e (diff) |
Adjust window splitting threshold
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-mac.el | 12 |
1 files changed, 7 insertions, 5 deletions
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) |