From 8c053fcfa5d65739f9303bc0555b9dd8463dc4b8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 26 May 2018 21:21:54 +0200 Subject: [PATCH] tools/eshell: remove useless remove-hook call You can't remove a hook function from a global hook list buffer locally. --- modules/tools/eshell/autoload/eshell.el | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/tools/eshell/autoload/eshell.el b/modules/tools/eshell/autoload/eshell.el index 059d0fba4..33e36842b 100644 --- a/modules/tools/eshell/autoload/eshell.el +++ b/modules/tools/eshell/autoload/eshell.el @@ -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)))