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:
parent
4c2554c22b
commit
8c053fcfa5
1 changed files with 0 additions and 1 deletions
|
@ -134,7 +134,6 @@ module to be loaded."
|
|||
(defun +eshell|init ()
|
||||
"Keep track of eshell buffers."
|
||||
(let ((buf (current-buffer)))
|
||||
(remove-hook 'kill-buffer-query-functions #'doom|protect-visible-buffers t)
|
||||
(dolist (buf (ring-elements +eshell-buffers))
|
||||
(unless (buffer-live-p buf)
|
||||
(+eshell--remove-buffer buf)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue