summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/init.el b/init.el
index 65a801a..0aa0044 100644
--- a/init.el
+++ b/init.el
@@ -1595,6 +1595,7 @@
;;;; eat
(use-package eat
:ensure t
+ :commands jao-exec-in-term
:init (setq jao-use-eat t
eat-kill-buffer-on-exit t)
:hook ((eshell-mode . eat-eshell-mode)
@@ -1607,15 +1608,17 @@
(defun jao-term--find (cmd)
(seq-find (lambda (b)
(with-current-buffer b
- (and (derived-mode-p 'term-mode 'vterm-mode)
+ (and (derived-mode-p 'eat-mode 'term-mode 'vterm-mode)
(string= (or jao-term--cmd "") cmd))))
(buffer-list)))
(defun jao-exec-in-term (cmd &optional name)
+ (interactive "SCommand")
+ (require 'eat nil t)
(cond ((and jao-use-vterm (fboundp 'jao-exec-in-vterm))
(jao-exec-in-vterm cmd name))
(jao-use-eat (let ((eat-term-name "xterm-256color"))
- (eat cmd)
+ (eat cmd t)
(setq jao-term--cmd cmd)))
(t (ansi-term "bash" name)
(set-process-sentinel (get-buffer-process (current-buffer))