emacs: improve shell autosuggestions and enable in comint modes replace esh-autosuggest with capf-autosuggest
Alan Pearce alan@alanpearce.eu
Sun, 19 Mar 2023 10:19:50 +0100
2 files changed, 7 insertions(+), 3 deletions(-)
M user/emacs/init.el → user/emacs/init.el
@@ -712,9 +712,13 @@ :commands (eshell-toggle) :general ("C-`" #'eshell-toggle) :config (setq eshell-toggle-use-projectile-root t)) -(use-package esh-autosuggest +(use-package capf-autosuggest :after eshell - :ghook ('eshell-mode-hook)) + :general (:keymaps 'capf-autosuggest-active-mode-map + "C-e" #'capf-autosuggest-end-of-line + "<right>" #'capf-autosuggest-end-of-line) + :ghook ('(eshell-mode-hook + comint-mode-hook))) (declare-function eshell-push-command "esh-buf-stack" (CMD)) (defun my-bind-esh-push ()
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -81,6 +81,7 @@ apheleia auto-async-byte-compile avy bash-completion + capf-autosuggest company company-tabnine consult @@ -92,7 +93,6 @@ dired-git-info editorconfig eglot eldoc-box - esh-autosuggest esh-buf-stack esh-help eshell-fringe-status