Refactor tools/eshell
Make eshell-directory-name easier to customize & remove unnecessary def-package! block.
This commit is contained in:
parent
6fe0017e24
commit
209f33c12e
1 changed files with 13 additions and 10 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue