summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index ff9c6902..a6677698 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -712,9 +712,13 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   :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 ()