我的代码中有以下代码init.el
;;open eshell
(defun eshell-other-window ()
(interactive)
(let ((buf (eshell)))
(switch-to-buffer (other-buffer buf))
(switch-to-buffer-other-window buf)
)
)
(global-set-key (kbd "C-t") 'eshell-other-window)
这工作正常,直到我退出 eshell。当我退出时,窗户保持打开状态。如何让窗口自动关闭?