mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-02 14:53:38 -05:00
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:
@@ -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)))
|
||||||
|
Reference in New Issue
Block a user