reddit / emacs

A question about python-mode and Eglot:

zeta_00 ยท 2022-02-01 17:14
Greetings, Quick question, What is the correct way to add python-mode to company-backends, so that Eglot can find python-lsp-server? Note: I'm using use-package. Also, when Eglot attempts to load python-lsp-server, a module pkgs\_resources error is thrown? I'm not sure if this has to do with the company-backends issue? Thanks in advance for the help ​ ;;------------------------------------------------- (use-package company :defer t) ;; (with-eval-after-load 'company ;; '(push 'company-python company-backends))) (add-hook 'python-mode (lambda () (setq company-backends '(company-dabbrev-code)))) ;;-------------------------------------------------