Commit a5f2ded3 authored by Guilherme Semente's avatar Guilherme Semente 🌱

Improve "Side Windows"

parent 39b4a515
......@@ -174,29 +174,39 @@ You may find other key bindings inside use-package statements."
window-combination-resize t)
(progn
"Side Windows"
(defvar semente-side-window-parameters
'(window-parameters . ((no-other-window . t)
(no-delete-other-windows . t))))
'(window-parameters . ((no-other-window . t)
(no-delete-other-windows . t))))
(setq fit-window-to-buffer-horizontally t
window-resize-pixelwise t)
(setq
display-buffer-alist
`(("\\*\\(?:help\\|grep\\|Completions\\)\\*"
display-buffer-in-side-window
(side . bottom)
(slot . 1)
(preserve-size . (nil . t))
,semente-side-window-parameters)
("\\*\\(?:shell\\|compilation\\)\\*"
display-buffer-in-side-window
(side . bottom)
(slot . -1)
(preserve-size . (nil . t))
,semente-side-window-parameters))))
(setq
display-buffer-alist
`(("\\*\\(?:help\\|\\(Ido \\)?Completions\\)\\*"
display-buffer-in-side-window
(side . bottom)
(slot . -1)
(window-height . 8)
(preserve-size . (nil . t))
,semente-side-window-parameters)
("\\*\\(?:shell\\|compilation\\|Backtrace\\)\\*"
display-buffer-in-side-window
(side . bottom)
(slot . 0)
(window-height . 12)
(preserve-size . (nil . t))
,semente-side-window-parameters)
("\\*\\(?:Buffer List\\|Proced\\)\\*"
display-buffer-in-side-window
(side . bottom)
(slot . 1)
(window-height . 8)
(preserve-size . (nil . t))
,semente-side-window-parameters))))
;; prevent extraneous tabs
(setq-default indent-tabs-mode nil
......@@ -401,7 +411,7 @@ You may find other key bindings inside use-package statements."
(use-package shell
:bind ("C-z" . shell)
:bind (:map shell-mode-map ("C-z" . winner-undo))
:bind (:map shell-mode-map ("C-z" . other-window))
:bind (:map shell-mode-map ("C-l" . semente-comint-clear-buffer))
:bind (:map shell-mode-map ("TAB" . company-manual-begin))
:preface
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment