From f4d8aa0176e6c3cb2ecbb75b8959d41060c918a6 Mon Sep 17 00:00:00 2001 From: MitchMarq42 Date: Sun, 27 Nov 2022 14:39:32 -0900 Subject: [PATCH] Eshell: fix keys and terminfo --- lisp/mitch-keybinds.el | 5 +++++ lisp/mitch-packages.el | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lisp/mitch-keybinds.el b/lisp/mitch-keybinds.el index b5697fe..52007e5 100644 --- a/lisp/mitch-keybinds.el +++ b/lisp/mitch-keybinds.el @@ -40,6 +40,11 @@ "b" (general-key "C-c C-e") "r" (general-key "C-c C-v r") "s" 'eshell) +;; eshell fixes +(general-define-key + :states 'normal + :maps 'eshell-mode-map + "I" 'eshell-evil-insert-line) (provide 'mitch-keybinds) ;;; mitch-keybinds.el ends here diff --git a/lisp/mitch-packages.el b/lisp/mitch-packages.el index 452fd36..1e027d2 100644 --- a/lisp/mitch-packages.el +++ b/lisp/mitch-packages.el @@ -139,8 +139,6 @@ (eshell-scroll-to-bottom-on-input t) (eshell-hist-ignoredups t) :config - ;; (evil-collection-define-key 'insert 'eshell-mode-map - ;; (kbd "C-c") 'eshell-interrupt-process) (add-to-list 'eshell-modules-list 'eshell-rebind) (defun eshell-evil-insert-line (count &optional vcount) (interactive "p") @@ -169,9 +167,8 @@ This is taken from a website that I can't remember at the moment." (insert "sudo "))))))) (use-package eat :straight (:repo "https://codeberg.org/akib/emacs-eat" - ;; :files ("*.el" "dir" "*.info" "*.texi" "*.ti" ("e" "e/*")) - ) - :hook (eshell-first-time-mode . eat-eshell-mode)) + :files ("*.el" "dir" "*.info" "*.texi" "*.ti" ("e" "e/*"))) + :hook (eshell-mode . eat-eshell-visual-command-mode)) ;; (use-package eshell-vterm ;; :after eshell ;; :custom (eshell-destroy-buffer-when-process-dies t)