mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Refactor tools/eshell
Make eshell-directory-name easier to customize & remove unnecessary def-package! block.
This commit is contained in:
@ -6,15 +6,19 @@
|
|||||||
;; + `+eshell/open-workspace': open in separate tab (requires :feature
|
;; + `+eshell/open-workspace': open in separate tab (requires :feature
|
||||||
;; workspaces)
|
;; workspaces)
|
||||||
|
|
||||||
(def-package! eshell ; built-in
|
(defvar eshell-directory-name
|
||||||
:defer t
|
|
||||||
:init
|
|
||||||
(setq eshell-directory-name
|
|
||||||
(let ((dir (expand-file-name "eshell" doom-private-dir)))
|
(let ((dir (expand-file-name "eshell" doom-private-dir)))
|
||||||
(if (file-directory-p dir)
|
(if (file-directory-p dir)
|
||||||
dir
|
dir
|
||||||
"~/.eshell"))
|
"~/.eshell")))
|
||||||
eshell-scroll-to-bottom-on-input 'all
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
;; Plugins
|
||||||
|
;;
|
||||||
|
|
||||||
|
(after! eshell ; built-in
|
||||||
|
(setq eshell-scroll-to-bottom-on-input 'all
|
||||||
eshell-scroll-to-bottom-on-output 'all
|
eshell-scroll-to-bottom-on-output 'all
|
||||||
eshell-buffer-shorthand t
|
eshell-buffer-shorthand t
|
||||||
eshell-kill-processes-on-exit t
|
eshell-kill-processes-on-exit t
|
||||||
@ -27,7 +31,6 @@
|
|||||||
eshell-glob-case-insensitive t
|
eshell-glob-case-insensitive t
|
||||||
eshell-error-if-no-glob t)
|
eshell-error-if-no-glob t)
|
||||||
|
|
||||||
:config
|
|
||||||
;; Consider eshell buffers real
|
;; Consider eshell buffers real
|
||||||
(add-hook 'eshell-mode-hook #'doom|mark-buffer-as-real)
|
(add-hook 'eshell-mode-hook #'doom|mark-buffer-as-real)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user