vterm: adapt to new function signature
emacs-libvterm@376db7cf416 had a breaking change for `vterm-exit-functions` which sends the event as the second argument.
This commit is contained in:
parent
2441b44789
commit
146e9a1acf
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
|||
(add-hook 'vterm-mode-hook #'doom-mark-buffer-as-real-h)
|
||||
;; Automatically kill buffer when vterm exits.
|
||||
(add-hook! 'vterm-exit-functions
|
||||
(defun +vterm-kill-buffer-on-quit-fn (buffer)
|
||||
(defun +vterm-kill-buffer-on-quit-fn (buffer event)
|
||||
(if buffer (kill-buffer buffer))))
|
||||
;; Modeline serves no purpose in vterm
|
||||
(add-hook 'vterm-mode-hook #'hide-mode-line-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue