Eshell: fix keys and terminfo

This commit is contained in:
MitchMarq42 2022-11-27 14:39:32 -09:00
parent 2099ab6242
commit f4d8aa0176
2 changed files with 7 additions and 5 deletions

View File

@ -40,6 +40,11 @@
"b" (general-key "C-c C-e") "b" (general-key "C-c C-e")
"r" (general-key "C-c C-v r") "r" (general-key "C-c C-v r")
"s" 'eshell) "s" 'eshell)
;; eshell fixes
(general-define-key
:states 'normal
:maps 'eshell-mode-map
"I" 'eshell-evil-insert-line)
(provide 'mitch-keybinds) (provide 'mitch-keybinds)
;;; mitch-keybinds.el ends here ;;; mitch-keybinds.el ends here

View File

@ -139,8 +139,6 @@
(eshell-scroll-to-bottom-on-input t) (eshell-scroll-to-bottom-on-input t)
(eshell-hist-ignoredups t) (eshell-hist-ignoredups t)
:config :config
;; (evil-collection-define-key 'insert 'eshell-mode-map
;; (kbd "C-c") 'eshell-interrupt-process)
(add-to-list 'eshell-modules-list 'eshell-rebind) (add-to-list 'eshell-modules-list 'eshell-rebind)
(defun eshell-evil-insert-line (count &optional vcount) (defun eshell-evil-insert-line (count &optional vcount)
(interactive "p") (interactive "p")
@ -169,9 +167,8 @@ This is taken from a website that I can't remember at the moment."
(insert "sudo "))))))) (insert "sudo ")))))))
(use-package eat (use-package eat
:straight (:repo "https://codeberg.org/akib/emacs-eat" :straight (:repo "https://codeberg.org/akib/emacs-eat"
;; :files ("*.el" "dir" "*.info" "*.texi" "*.ti" ("e" "e/*")) :files ("*.el" "dir" "*.info" "*.texi" "*.ti" ("e" "e/*")))
) :hook (eshell-mode . eat-eshell-visual-command-mode))
:hook (eshell-first-time-mode . eat-eshell-mode))
;; (use-package eshell-vterm ;; (use-package eshell-vterm
;; :after eshell ;; :after eshell
;; :custom (eshell-destroy-buffer-when-process-dies t) ;; :custom (eshell-destroy-buffer-when-process-dies t)