I use package manager to update my packages automatically by doing package-list-packagespackage-list-packages
, package-menu-mark-upgradespackage-menu-mark-upgrades
, package-menu-executepackage-menu-execute
. (I assume this is the easiest way to automatically update all my packages, though I don't really know.)
When I do this, org-mode winds up in a directory with a path like this: ~/Dropbox/emacs/prelude/elpa/org-20150511/
~/Dropbox/emacs/prelude/elpa/org-20150511/
I use packages that are part of contrib
, so my .emacs includes these lines:
(add-to-list 'load-path "~/Dropbox/emacs/prelude/elpa/org-20150511/lisp" load-path)
(add-to-list 'load-path "~/Dropbox/emacs/prelude/elpa/org-20150511/contrib" load-path)
(add-to-list 'load-path "~/Dropbox/emacs/prelude/elpa/org-20150511/contrib/lisp" load-path)
Since the org directory is named according to the date of the release, this means I have to either:
- edit the directory name in the load paths
- rename the org folder
Is there a way to get org-mode to find the contrib directories automatically when I upgrade org?