mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
use add-hook instead of setq
we can support multipule hook functions with `add-hook`
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user