From 7529b089ef0a7805a49353d92dd3db5a552e585f Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 26 Jan 2021 12:22:21 -0600 Subject: Add split-{width,height}-threshold Still might need work --- config.org | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/config.org b/config.org index 84a9cd4..9e1d21c 100644 --- a/config.org +++ b/config.org @@ -150,18 +150,13 @@ and have made a custom fringe bitmap. ** Windows -*** Switch to other window or buffer +*** Splitting windows sensibly -I grabbed this from [[https://www.reddit.com/r/emacs/comments/kz347f/what_parts_of_your_config_do_you_like_best/gjlnp2c/][u/astoff1]]: it extends the =other-window= command -to switch to the other buffer if there's only one window in the frame. +This is extremely fiddly and I'd love another option. -#+begin_src emacs-lisp :noweb-ref functions - (defun other-window-or-buffer () - "Switch to other window, or the previous buffer." - (interactive) - (if (eq (count-windows) 1) - (switch-to-buffer nil) - (other-window 1))) +#+begin_src emacs-lisp :noweb-ref settings + (setq-default split-width-threshold 80 + split-height-threshold 50) #+end_src *** Switch to other window or buffer :crux: -- cgit 1.4.1-21-gabe81