Fix autocomplete bindings in eshell buffers
This commit is contained in:
@@ -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
|
||||
"<tab>" #'corfu-next
|
||||
"S-TAB" #'corfu-previous
|
||||
"<backtab>" #'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
|
||||
|
||||
Reference in New Issue
Block a user