eshell/emacs: maybe open in same pane. Still needs work.

This commit is contained in:
MitchMarq42 2022-12-09 10:24:07 -09:00
parent 4bd20b7930
commit f9cccd3ffa

View File

@ -154,8 +154,11 @@
When your shell is Emacs, your Emacs is but an oyster... When your shell is Emacs, your Emacs is but an oyster...
This is taken from a website that I can't remember at the moment." This is taken from a website that I can't remember at the moment."
(if (null args) (bury-buffer) (if (null args) (bury-buffer)
(mapc #'find-file-other-window (let ((open-func (if (one-window-p)
(mapcar #'expand-file-name (flatten-tree (reverse args)))))) #'find-file-other-window
#'find-file)))
(mapc open-func
(mapcar #'expand-file-name (flatten-tree (reverse args)))))))
(defun mitch/eshell-setup-keys () (defun mitch/eshell-setup-keys ()
(evil-collection-define-key (evil-collection-define-key
'normal 'normal