Improve popup compatibility for eshell & multi-term
This commit is contained in:
parent
d675ade45d
commit
742f5b26ed
4 changed files with 6 additions and 5 deletions
|
@ -144,6 +144,9 @@ ALIST supports one custom parameter: `size', which will resolve to
|
||||||
(set! :popup "^\\*Help"
|
(set! :popup "^\\*Help"
|
||||||
'((slot . -1) (size . 0.2))
|
'((slot . -1) (size . 0.2))
|
||||||
'((select . t)))
|
'((select . t)))
|
||||||
|
(set! :popup "^\\*\\(?:term\\|doom eshell\\)"
|
||||||
|
'((size . 0.25))
|
||||||
|
'((select . t) (quit) (transient . 0)))
|
||||||
(set! :popup "^\\*doom:"
|
(set! :popup "^\\*doom:"
|
||||||
'((size . 0.35))
|
'((size . 0.35))
|
||||||
'((select . t) (modeline . t) (quit) (transient))))
|
'((select . t) (modeline . t) (quit) (transient))))
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
(defvar +eshell-buffers ()
|
(defvar +eshell-buffers ()
|
||||||
"List of open 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',
|
"The name to use for custom eshell buffers. This only affects `+eshell/open',
|
||||||
`+eshell/open-popup' and `+eshell/open-workspace'.")
|
`+eshell/open-popup' and `+eshell/open-workspace'.")
|
||||||
|
|
||||||
|
|
|
@ -60,11 +60,8 @@ redefines its keys every time `eshell-mode' is enabled."
|
||||||
:i "C-n" #'eshell-next-input
|
:i "C-n" #'eshell-next-input
|
||||||
:i "<down>" #'eshell-next-input
|
:i "<down>" #'eshell-next-input
|
||||||
:m "<return>" #'+eshell/evil-append
|
: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
|
:n [remap evil-record-macro] #'eshell-life-is-too-much
|
||||||
[remap kill-this-buffer] #'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))
|
|
||||||
(add-hook 'eshell-mode-hook #'+eshell|init-keymap)
|
(add-hook 'eshell-mode-hook #'+eshell|init-keymap)
|
||||||
|
|
||||||
;; Aliases
|
;; Aliases
|
||||||
|
|
|
@ -4,4 +4,5 @@
|
||||||
:commands (multi-term multi-term-next multi-term-prev)
|
:commands (multi-term multi-term-next multi-term-prev)
|
||||||
:config
|
:config
|
||||||
(setq multi-term-program (getenv "SHELL")
|
(setq multi-term-program (getenv "SHELL")
|
||||||
|
multi-term-dedicated-window-height 20
|
||||||
multi-term-switch-after-close 'PREVIOUS))
|
multi-term-switch-after-close 'PREVIOUS))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue