tools/eshell: consider eshell buffers real
This commit is contained in:
parent
8807471846
commit
b1dce548ad
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue