summary refs log tree commit diff stats
path: root/lisp
diff options
context:
space:
mode:
authorCase Duckworth2022-01-31 13:55:31 -0600
committerCase Duckworth2022-01-31 13:55:31 -0600
commitb19c1f98fae14e2c1747dd05a56ae1602d378318 (patch)
tree48bd67a02c01ba6b75627d081c1d8b13faaf0b7c /lisp
parentAdd `+org-define-capture-template' (diff)
downloademacs-b19c1f98fae14e2c1747dd05a56ae1602d378318.tar.gz
emacs-b19c1f98fae14e2c1747dd05a56ae1602d378318.zip
Update `+eshell-quit-or-delete-char'
Diffstat (limited to 'lisp')
-rw-r--r--lisp/+eshell.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/+eshell.el b/lisp/+eshell.el index d70bed7..bcab846 100644 --- a/lisp/+eshell.el +++ b/lisp/+eshell.el
@@ -31,7 +31,12 @@ any directory proferred by `consult-dir'."
31 (if (and (eolp) (looking-back eshell-prompt-regexp)) 31 (if (and (eolp) (looking-back eshell-prompt-regexp))
32 (progn (eshell-life-is-too-much) 32 (progn (eshell-life-is-too-much)
33 (when (and (<= 1 (count-windows)) 33 (when (and (<= 1 (count-windows))
34 ;; I'm guessing the extra frame is for the server? 34 ;; TODO: This is not what I want. What I really want is
35 ;; for an eshell-only frame (i.e., called from a
36 ;; keybind) to delete itself, but a regular Emacs frame
37 ;; with Eshell inside to stick around. I think I'll
38 ;; need to make a frame-local (?) variable for that to
39 ;; work.
35 (> (length (frame-list)) 2) 40 (> (length (frame-list)) 2)
36 server-process) 41 server-process)
37 (delete-frame))) 42 (delete-frame)))