From 7b2dc5021efa29658afca5b9c4e84971114e7bcc Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sat, 16 Dec 2023 01:08:16 +0200 Subject: emacs:(shells) Update eat-eshell config & vterm keys --- .emacs.d/modules/thanos-shells.el | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to '.emacs.d/modules/thanos-shells.el') diff --git a/.emacs.d/modules/thanos-shells.el b/.emacs.d/modules/thanos-shells.el index fdca336..57fd8dc 100644 --- a/.emacs.d/modules/thanos-shells.el +++ b/.emacs.d/modules/thanos-shells.el @@ -36,15 +36,15 @@ (require 'pcomplete) (require 'eshell) -(setf eshell-visual-commands '()) +(setf eshell-visual-commands + '("vi" "vim" "screen" "tmux" "top" "htop" "less" + "more" "lynx" "links" "ncftp" "mutt" "pine" "tin" + "trn" "elm")) -(use-package eat - :straight t - :hook - (eshell-mode . eat-eshell-mode) - (eshell-mode . eat-eshell-visual-command-mode) - :config - (setf eat-term-name "xterm")) +(require 'eat) +(add-hook 'eshell-mode-hook #'eat-eshell-visual-command-mode) +;; (add-hook 'eshell-mode-hook #'eat-eshell-mode) +(setf eat-term-name "xterm") ;;;; doas completion (defun pcomplete/doas () @@ -166,7 +166,10 @@ ;; Keybindings (define-key global-map (kbd "C-c e") 'eshell) + +(require 'vterm) (define-key global-map (kbd "C-c v") 'vterm) +(define-key vterm-mode-map (kbd "M-&") #'async-shell-command) (provide 'thanos-shells) -- cgit v1.2.3