tools/eshell: consider eshell buffers real

This commit is contained in:
Henrik Lissner 2018-05-18 01:26:00 +02:00
parent 8807471846
commit b1dce548ad
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)