term/eshell: integrate company + pcomplete
This commit is contained in:
parent
bf46a197a0
commit
422c61a02a
3 changed files with 73 additions and 2 deletions
|
@ -175,7 +175,13 @@ Once the eshell process is killed, the previous frame layout is restored."
|
|||
bottom. This ties pcomplete into ivy or helm, if they are enabled."
|
||||
(interactive)
|
||||
(require 'pcomplete)
|
||||
(ignore-errors (pcomplete-std-complete)))
|
||||
(if (and (bound-and-true-p company-mode)
|
||||
(or company-candidates
|
||||
(and (company-pcomplete-available)
|
||||
(company-pcomplete--prefix)
|
||||
(company-pcomplete--candidates))))
|
||||
(call-interactively #'company-pcomplete)
|
||||
(ignore-errors (pcomplete-std-complete))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +eshell/quit-or-delete-char (arg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue