From: João Távora Date: Wed, 16 Oct 2019 15:29:41 +0000 (+0100) Subject: Use of company-capf backend in eglot-managed buffers X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~299 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=024bbfc6163acbd2545f74d4537f801ae7bf012f;p=emacs.git Use of company-capf backend in eglot-managed buffers * eglot.el (company-backends): forward-declare (eglot--managed-mode): Force company-backends to company-capf --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 9460e4b3c64..0220969e6fd 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -71,6 +71,8 @@ (require 'filenotify) (require 'ert) (require 'array) +(defvar company-backends) ; forward-declare, but don't require company yet + ;;; User tweakable stuff @@ -1196,6 +1198,7 @@ and just return it. PROMPT shouldn't end with a question mark." (eglot--setq-saving eldoc-documentation-function #'eglot-eldoc-function) (eglot--setq-saving xref-prompt-for-identifier nil) (eglot--setq-saving flymake-diagnostic-functions '(eglot-flymake-backend t)) + (eglot--setq-saving company-backends '(company-capf)) (add-function :around (local 'imenu-create-index-function) #'eglot-imenu) (flymake-mode 1) (eldoc-mode 1))