use add-hook instead of setq
we can support multipule hook functions with `add-hook`
This commit is contained in:
parent
424c358786
commit
8b867c780d
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@
|
|||
(set-env! "SHELL")
|
||||
(add-hook 'vterm-mode-hook #'doom|mark-buffer-as-real)
|
||||
;; Automatically kill buffer when vterm exits.
|
||||
(setq-default vterm-exit-functions #'kill-buffer)
|
||||
(add-hook 'vterm-exit-functions #'(lambda (buffer)
|
||||
(when buffer (kill-buffer buffer))))
|
||||
(when (featurep! :feature evil)
|
||||
(evil-set-initial-state 'vterm-mode 'insert)
|
||||
;; Those keys are commonly needed by terminals.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue