all repos — nixfiles @ 21729d21ff2678b83984ee1a4e600c6e88cef2ce

System and user configuration, managed by nix and home-manager

emacs: improve shell autosuggestions and enable in comint modes replace esh-autosuggest with capf-autosuggest

Alan Pearce
commit

21729d21ff2678b83984ee1a4e600c6e88cef2ce

parent

23b4dcb32b7f7fbf1c12d23030b9de02d64c955f

1 file changed, 6 insertions(+), 2 deletions(-)

changed files
M user/emacs/init.eluser/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 ()