I have Emacs installed on multiple machines, and every time I install yasnippet through elpa. As it's version changes, it is being installed into different directories. For example:
#first machine ~/.emacs.d/elpa/yasnippet-20170518.1753 #second machine ~/.emacs.d/elpa/yasnippet-20170828.1908
~/.emacs I have the following code:
(defvar *my-emacs-lib-dir* "d:/bin/cygwin/home/user/.emacs.d/") (defvar *yasnippet-dir* "~/.emacs.d/elpa/yasnippet-20170518.1753") (load-file (concat *my-emacs-lib-dir* "bootstrap-init.el"))
bootstrap-init.el I load yasnippet library:
(load (concat *yasnippet-dir* "/yasnippet")) (yas/global-mode 1)
Is it possible to get path to installed yasnippet library from elpa database? So I won't need to modify
*yasnippet-dir* on every machine?