I install yasnippet from the repository using the package manager and I add the corresponding directory to the load path before (use-package yasnippet):
;; Add all subdirs in site-lisp to the load-path (let ((default-directory "/usr/share/emacs/site-lisp/")) (normal-top-level-add-subdirs-to-load-path))
but when I start emacs it installs the package (despite of the load path) in the ".emacs.d/elpa/" directory. Is there a way to avoid it?
use-packagesexp for yasnippet? When running emacs without your config
emacs -q, is
yasnippetavailable? (it should, because it is loaded by system wide emacs init scripts)