Allow to display shell and eshell in same side window

Inspired by
https://www.gnu.org/software/emacs/manual/html_node/elisp/Frame-Layouts-with-Side-Windows.html.
This commit is contained in:
Daniel - 2023-04-16 11:29:34 +02:00
parent cfe1dcfa0a
commit b6bdb4f9e2
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 10 additions and 3 deletions

13
init.el
View File

@ -539,12 +539,19 @@
'("^\\*Help\\*"
(display-buffer-reuse-window
display-buffer-pop-up-window)))
;; Inspired by masteringemacs
;; Inspired by masteringemacs and
;; https://www.gnu.org/software/emacs/manual/html_node/elisp/Frame-Layouts-with-Side-Windows.html
(add-to-list 'display-buffer-alist
'("^\\*e?shell\\*"
'("^\\*eshell\\*"
display-buffer-in-side-window
(side . bottom)
(slot . 0)
(slot . -1)
(window-height . 0.33)))
(add-to-list 'display-buffer-alist
'("^\\*shell\\*"
display-buffer-in-side-window
(side . bottom)
(slot . 1)
(window-height . 0.33)))))
(use-package winner