From fa7e1351a8b40a1be60d24029898a4daa0839b57 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Wed, 24 Jun 2026 21:52:07 -0700 Subject: [PATCH] Fix autocomplete bindings in eshell buffers --- init.el | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index c7a2d93..a24a136 100644 --- a/init.el +++ b/init.el @@ -520,8 +520,6 @@ PRED is nil, the value of `my/kill-some-buffers-default-pred' is used." (tab-bar-mode 1) (tab-bar-history-mode 1)) -(with-eval-after-load 'tab-bar) - ;; jinx (better flyspell) (use-package jinx :hook (emacs-startup . global-jinx-mode) @@ -2978,9 +2976,17 @@ Actually, return the method name." (setq-local my/-eshell-last-remote-system (file-remote-p default-directory))) + (defvar-keymap my/eshell-corfu-map + :doc "`corfu-map' for `eshell' buffers." + :parent corfu-map + "TAB" #'corfu-next + "" #'corfu-next + "S-TAB" #'corfu-previous + "" #'corfu-previous) (defun my/-eshell-mode-setup () "Setup function run from `eshell-mode-hook'" - (setq-local corfu-auto nil) + (setq-local corfu-auto nil + corfu-map my/eshell-corfu-map) (my/-eshell-maybe-setup-remote t) (with-editor-export-editor)) (setq-default eshell-command-aliases-list