emacs/eshell: fix pcomplete+ivy/helm integration
Use ivy/helm instead of the popup at the bottom.
This commit is contained in:
parent
01b2856cc2
commit
c0f601721c
2 changed files with 9 additions and 0 deletions
|
@ -125,6 +125,14 @@ module to be loaded."
|
||||||
(insert command)
|
(insert command)
|
||||||
(eshell-send-input nil t)))
|
(eshell-send-input nil t)))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun +eshell/pcomplete ()
|
||||||
|
"Use pcomplete with completion-in-region backend instead of popup window at
|
||||||
|
bottom. This ties pcomplete into ivy or helm, if they are enabled."
|
||||||
|
(interactive)
|
||||||
|
(require 'pcomplete)
|
||||||
|
(pcomplete-std-complete))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Hooks
|
;; Hooks
|
||||||
|
|
|
@ -63,6 +63,7 @@ redefines its keys every time `eshell-mode' is enabled."
|
||||||
"d" #'+eshell/evil-delete
|
"d" #'+eshell/evil-delete
|
||||||
"D" #'+eshell/evil-delete-line)
|
"D" #'+eshell/evil-delete-line)
|
||||||
(evil-define-key* 'insert eshell-mode-map
|
(evil-define-key* 'insert eshell-mode-map
|
||||||
|
[tab] #'+eshell/pcomplete
|
||||||
"\C-d" #'+eshell/quit-or-delete-char
|
"\C-d" #'+eshell/quit-or-delete-char
|
||||||
"\C-p" #'eshell-previous-input
|
"\C-p" #'eshell-previous-input
|
||||||
"\C-n" #'eshell-next-input))
|
"\C-n" #'eshell-next-input))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue