diff options
author | jao <jao@gnu.org> | 2023-01-17 01:33:10 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2023-01-17 01:33:45 +0000 |
commit | bc4828b3d6333f4c2490976e79ebf6b12d7c95f6 (patch) | |
tree | b9238769fec652475ec61f65309e43ecbc5b1e17 | |
parent | 058ab203a135b4cffbb26c8bdf9fd1ccbb82c94d (diff) | |
download | elibs-bc4828b3d6333f4c2490976e79ebf6b12d7c95f6.tar.gz elibs-bc4828b3d6333f4c2490976e79ebf6b12d7c95f6.tar.bz2 |
eat: fixes
-rw-r--r-- | init.el | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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)) |