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:
parent
cfe1dcfa0a
commit
b6bdb4f9e2
13
init.el
13
init.el
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue