move vterm's popup rule to vterm layer

This commit is contained in:
SteamedFish 2019-02-17 00:04:51 +08:00
parent 0a43819a44
commit 1e864df8cd
2 changed files with 2 additions and 2 deletions

View file

@ -16,6 +16,8 @@
;; Automatically kill buffer when vterm exits.
(add-hook 'vterm-exit-functions #'(lambda (buffer)
(when buffer (kill-buffer buffer))))
(when (featurep! :ui popup +defaults)
(set-popup-rule! "^vterm" :size 0.25 :vslot -4 :select t :quit nil :ttl 0))
(when (featurep! :feature evil)
(evil-set-initial-state 'vterm-mode 'insert)
;; Those keys are commonly needed by terminals.

View file

@ -144,8 +144,6 @@ prevent the popup(s) from messing up the UI (or vice versa)."
:size 0.45 :vslot -3 :ttl 0 :quit t :select t)
("^\\*doom \\(?:term\\|eshell\\)"
:size 0.25 :vslot -4 :select t :quit nil :ttl 0)
("^vterm"
:size 0.25 :vslot -4 :select t :quit nil :ttl 0)
("^\\*doom:"
:vslot -5 :size 0.35 :size bottom :autosave t :select t :modeline t :quit nil)
("^\\*\\(?:\\(?:Pp E\\|doom e\\)val\\)"