Improve popup compatibility for eshell & multi-term

This commit is contained in:
Henrik Lissner 2018-01-07 15:25:35 -05:00
parent d675ade45d
commit 742f5b26ed
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 6 additions and 5 deletions

View file

@ -144,6 +144,9 @@ ALIST supports one custom parameter: `size', which will resolve to
(set! :popup "^\\*Help"
'((slot . -1) (size . 0.2))
'((select . t)))
(set! :popup "^\\*\\(?:term\\|doom eshell\\)"
'((size . 0.25))
'((select . t) (quit) (transient . 0)))
(set! :popup "^\\*doom:"
'((size . 0.35))
'((select . t) (modeline . t) (quit) (transient))))

View file

@ -3,7 +3,7 @@
(defvar +eshell-buffers ()
"List of open eshell buffers.")
(defvar +eshell-buffer-name "*doom:eshell*"
(defvar +eshell-buffer-name "*doom eshell*"
"The name to use for custom eshell buffers. This only affects `+eshell/open',
`+eshell/open-popup' and `+eshell/open-workspace'.")

View file

@ -60,11 +60,8 @@ redefines its keys every time `eshell-mode' is enabled."
:i "C-n" #'eshell-next-input
:i "<down>" #'eshell-next-input
:m "<return>" #'+eshell/evil-append
:n [remap evil-window-split] #'+eshell/split
:n [remap evil-window-vsplit] #'+eshell/vsplit
:n [remap evil-record-macro] #'eshell-life-is-too-much
[remap kill-this-buffer] #'eshell-life-is-too-much
[remap +workspace/close-window-or-workspace] #'eshell-life-is-too-much))
[remap kill-this-buffer] #'eshell-life-is-too-much))
(add-hook 'eshell-mode-hook #'+eshell|init-keymap)
;; Aliases

View file

@ -4,4 +4,5 @@
:commands (multi-term multi-term-next multi-term-prev)
:config
(setq multi-term-program (getenv "SHELL")
multi-term-dedicated-window-height 20
multi-term-switch-after-close 'PREVIOUS))