mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-31 14:43:40 -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 ()
|
||||
"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)))
|
||||
|
Reference in New Issue
Block a user