Config:
(use-package yasnippet
:ensure t
:hook
(prog-mode . yas-minor-mode)
)
(use-package yasnippet-snippets
:ensure t
:after yas)
(use-package common-lisp-snippets
:ensure t
:after yas
:hook lisp-mode-hook)
(use-package slime-company
:ensure t
:after (slime company)
:hook
(lisp-mode
. (lambda ()
(set (make-local-variable 'company-backends)
'((company-slime company-yasnippet company-semantic)))))
(slime-editing-mode-hook
. (lambda ()
(set (make-local-variable 'company-backends)
'((company-slime company-yasnippet company-semantic)))))
:config
(setq slime-company-completion 'fuzzy
slime-company-after-completion 'slime-company-just-one-space))
In a lisp file, "defpackage"(imported by common-lisp-snippets) is show when using:
yas-insert-snippet
but company doesn't show for it. How to config company-yasnippet to find it?