Try to make ein:company-backend loading more robust.

Try, but seem to still be mostly failing. Think this is more a personal setup
issue than something in general but this change should, at the very least, not
do any harm.
This commit is contained in:
John Miller 2018-09-28 11:51:57 -05:00
parent 637deaaeb1
commit 3d3503289f

View file

@ -1611,8 +1611,10 @@ This hook is run regardless the actual major mode used."
(auto-complete-mode +1))
(ein:use-ac-jedi-backend (ein:jedi-complete-on-dot-install ein:notebook-mode-map)
(auto-complete-mode +1))
(ein:use-company-backend (company-mode +1))
(ein:use-company-backend (add-to-list 'company-backends 'ein:company-backend)
(company-mode +1))
(ein:use-company-jedi-backend (warn "Support for jedi+company currently not implemented. Defaulting to just company-mode")
(add-to-list 'company-backends 'ein:company-backend)
(company-mode +1))
(t (warn "No autocompletion backend has been selected - see `ein:completion-backend'.")))