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-package
sexp for yasnippet? When running emacs without your configemacs -q
, isyasnippet
available? (it should, because it is loaded by system wide emacs init scripts) – jue Nov 04 '19 at 09:39;; Yasnippet ;; check documentation for all scripts for the corresponding language (use-package yasnippet :ensure t :init (yas-global-mode 1) )
– Nov 04 '19 at 10:41