tools/eshell: remove useless remove-hook call

You can't remove a hook function from a global hook list buffer locally.
This commit is contained in:
Henrik Lissner 2018-05-26 21:21:54 +02:00
parent 4c2554c22b
commit 8c053fcfa5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -134,7 +134,6 @@ module to be loaded."
(defun +eshell|init () (defun +eshell|init ()
"Keep track of eshell buffers." "Keep track of eshell buffers."
(let ((buf (current-buffer))) (let ((buf (current-buffer)))
(remove-hook 'kill-buffer-query-functions #'doom|protect-visible-buffers t)
(dolist (buf (ring-elements +eshell-buffers)) (dolist (buf (ring-elements +eshell-buffers))
(unless (buffer-live-p buf) (unless (buffer-live-p buf)
(+eshell--remove-buffer buf))) (+eshell--remove-buffer buf)))