mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
tools/eshell: consider eshell buffers real
This commit is contained in:
@ -30,6 +30,11 @@
|
|||||||
eshell-error-if-no-glob t)
|
eshell-error-if-no-glob t)
|
||||||
|
|
||||||
:config
|
: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
|
;; Keep track of open eshell buffers
|
||||||
(add-hook 'eshell-mode-hook #'+eshell|init)
|
(add-hook 'eshell-mode-hook #'+eshell|init)
|
||||||
(add-hook 'eshell-exit-hook #'+eshell|cleanup)
|
(add-hook 'eshell-exit-hook #'+eshell|cleanup)
|
||||||
|
Reference in New Issue
Block a user