reddit / emacs

Could you give me some tips on using company backends correctly in in Emacs for Eglot and python-lsp-server:

zeta_00 · 2022-02-01 19:08
Greetings, I finally fixed the issue where Eglot was dying, so now when I open a Python file Eglot activates fine. But, now my issue has to do with company backends. Here's the error: File mode specification error: (void-variable company-backends) And here's my config: ;;------------------------------------------------- (use-package company :defer t :config (setq company-backends '((company-files :with company-yasnippet) (company-capf :with company-yasnippet) (company-dabbrev-code company-gtags company-etags company-keywords :with company-yasnippet) (company-dabbrev :with company-yasnippet))) (setq lsp-completion-provider :none) (add-hook 'python-mode-hook '(lambda () (set (make-local-variable 'company-backends) '(company-python)))) ) ;;-------------------------------------------------
wargxs · 2022-02-02 05:20
Eglot completions are provided via company-capf backend. I would start with an empty company configuration. Yours looks very strange…