Fix autocomplete bindings in eshell buffers

This commit is contained in:
2026-06-24 21:52:07 -07:00
parent 4c30f57e39
commit fa7e1351a8
+9 -3
View File
@@ -520,8 +520,6 @@ PRED is nil, the value of `my/kill-some-buffers-default-pred' is used."
(tab-bar-mode 1) (tab-bar-mode 1)
(tab-bar-history-mode 1)) (tab-bar-history-mode 1))
(with-eval-after-load 'tab-bar)
;; jinx (better flyspell) ;; jinx (better flyspell)
(use-package jinx (use-package jinx
:hook (emacs-startup . global-jinx-mode) :hook (emacs-startup . global-jinx-mode)
@@ -2978,9 +2976,17 @@ Actually, return the method name."
(setq-local my/-eshell-last-remote-system (setq-local my/-eshell-last-remote-system
(file-remote-p default-directory))) (file-remote-p default-directory)))
(defvar-keymap my/eshell-corfu-map
:doc "`corfu-map' for `eshell' buffers."
:parent corfu-map
"TAB" #'corfu-next
"<tab>" #'corfu-next
"S-TAB" #'corfu-previous
"<backtab>" #'corfu-previous)
(defun my/-eshell-mode-setup () (defun my/-eshell-mode-setup ()
"Setup function run from `eshell-mode-hook'" "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) (my/-eshell-maybe-setup-remote t)
(with-editor-export-editor)) (with-editor-export-editor))
(setq-default eshell-command-aliases-list (setq-default eshell-command-aliases-list