diff --git a/modules/tools/eshell/config.el b/modules/tools/eshell/config.el index 4a5ec3cb0..26f919bd9 100644 --- a/modules/tools/eshell/config.el +++ b/modules/tools/eshell/config.el @@ -30,6 +30,11 @@ eshell-error-if-no-glob t) :config + ;; Consider eshell buffers real + (defun +eshell-p (buf) + (eq (buffer-local-value 'major-mode buf) 'eshell-mode)) + (add-to-list 'doom-real-buffer-functions #'+eshell-p #'eq) + ;; Keep track of open eshell buffers (add-hook 'eshell-mode-hook #'+eshell|init) (add-hook 'eshell-exit-hook #'+eshell|cleanup)