diff --git a/contrib/lang/python/packages.el b/contrib/lang/python/packages.el index f27a85508..1c4c04525 100644 --- a/contrib/lang/python/packages.el +++ b/contrib/lang/python/packages.el @@ -60,7 +60,11 @@ which require an initialization must be listed explicitly in the list.") (use-package company-anaconda :if (boundp 'company-backends) :defer t - :init (add-to-list 'company-backends (company-mode/backend-with-yas 'company-anaconda)))) + :init + (if (configuration-layer/layer-declaredp 'yasnippet) + (add-to-list 'company-backends (company-mode/backend-with-yas + 'company-anaconda)) + (add-to-list 'company-backends 'company-anaconda)))) (defun python/init-cython-mode () (use-package cython-mode