Update `+eshell-quit-or-delete-char'

This commit is contained in:
Case Duckworth 2022-01-31 13:55:31 -06:00
parent 5bb0040b8a
commit b19c1f98fa
1 changed files with 6 additions and 1 deletions

View File

@ -31,7 +31,12 @@ any directory proferred by `consult-dir'."
(if (and (eolp) (looking-back eshell-prompt-regexp))
(progn (eshell-life-is-too-much)
(when (and (<= 1 (count-windows))
;; I'm guessing the extra frame is for the server?
;; TODO: This is not what I want. What I really want is
;; for an eshell-only frame (i.e., called from a
;; keybind) to delete itself, but a regular Emacs frame
;; with Eshell inside to stick around. I think I'll
;; need to make a frame-local (?) variable for that to
;; work.
(> (length (frame-list)) 2)
server-process)
(delete-frame)))