making some eshell changes

This commit is contained in:
Chris Cochrun 2024-07-15 10:07:49 -05:00
parent 50d9ded24c
commit 448c1cd2fc
2 changed files with 26 additions and 0 deletions

11
init.el
View file

@ -2250,6 +2250,8 @@ targets."
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.25))
("\\*e?shell\\*<20>"
(display-buffer-same-window))
("\\*e?shell-terminal\\*"
(display-buffer-same-window))
("*helpful*"
@ -2304,6 +2306,8 @@ targets."
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.25))
("\\*e?shell\\*"
(display-buffer-same-window))
("\\*e?shell-terminal\\*"
(display-buffer-same-window))
("*helpful*"
@ -3305,6 +3309,12 @@ targets."
"*upgrade*"
"*upgrade-errors*")))
(defun chris/eshell-current-window ()
"Open eshell in the current directory using the current window"
(interactive)
(same-window-prefix)
(eshell))
(setq eshell-command-aliases-list
`(("q" "exit")
("f" "find-file $1")
@ -3362,6 +3372,7 @@ targets."
:states 'normal
:keymaps 'override
"oe" 'chris/eshell-new
"oE" 'chris/eshell-current-window
"be" 'eshell)
(general-def '(normal insert) eshell-mode-map
"C-d" 'kill-buffer-and-window