Skip to content

Commit

Permalink
tweak(window): better window placement for REPL buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 19, 2023
1 parent 9a2b356 commit 7e66878
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions modules/me-window.el
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
(display-buffer-in-side-window)
(slot . 0)
(side . right)
(dedicated . t) ;; Close when finished
(window-width . 80)))

;; Show *Warnings* at bottom
Expand All @@ -49,13 +50,23 @@
(add-to-list
'display-buffer-alist
`(,(rx bol "*" (or "eshell" "terminal" "shell" "Shell Command Output" "Async Shell Command") "*" eol)
;; (display-buffer-reuse-window display-buffer-at-bottom)
(display-buffer-reuse-window display-buffer-in-direction)
(direction . bottom) ;; bottom (above below...)
(display-buffer-reuse-window display-buffer-at-bottom)
(dedicated . t) ;; Close when finished
(reusable-frames . visible) ;;
(window-height . 0.3)))

(add-to-list
'display-buffer-alist
`(,(rx bol "*"
(or "scheme" "ielm" "Python" "Inferior Octave" "maxima" "imaxima" "lua" "inferior-lisp" "prolog" "gnuplot"
(seq (or (seq "R" (opt ":" (any digit))) "julia") ":" (* any)))
"*" eol)
(display-buffer-in-side-window)
(side . right)
(dedicated . t) ;; Close when finished
(window-width . 0.5)
(reusable-frames . visible)))

(setq
frame-title-format
'("%b"
Expand Down

0 comments on commit 7e66878

Please sign in to comment.