From: rearman Date: Mon, 1 Jun 2026 13:04:22 +0000 (-0400) Subject: re/dired-display-direction to split sensibly X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=7f743b8f82854a884550357e4eadf09a972e960f;p=emacsinit.git re/dired-display-direction to split sensibly Don't force right-split on narrow windows --- diff --git a/config.org b/config.org index e87f046..190b42c 100644 --- a/config.org +++ b/config.org @@ -358,8 +358,8 @@ Sly really doesn't play well with elodc in the minibuffer, so here are some sett ("o" "Overview" ((agenda "" ((org-agenda-compact-blocks t))) ,,*re/org-agenda-inbox* ,,*re/org-agenda-todo* - ,,*re/org-agenda-two-week-overview* ,,*re/org-agenda-undertakings* + ,,*re/org-agenda-two-week-overview* ,,*re/org-agenda-waiting*)))) #+END_SRC ***** Capture Templates @@ -925,7 +925,7 @@ Stolen from https://www.masteringemacs.org/article/fixing-mark-commands-transien ((window-in-direction 'below)) ;; and default to right ((window-in-direction 'left)) ;; if no window found. ((window-in-direction 'above)) - (t (split-window (selected-window) nil 'right))))) + (t (split-window-sensibly (selected-window)))))) (window--display-buffer buffer window 'window nil) window)))