I use package manager to update my packages automatically by doing package-list-packages
, package-menu-mark-upgrades
, package-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/
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: 1. edit the directory name in the load paths 2. rename the org folder
Is there a way to get org-mode to find the contrib directories automatically when I upgrade org?
orgmode.org/elpa
topackage-archives
as per the instructions here and installorg-plus-contrib
from the package manager. That install the regular org files plus the contrib content in a flat folder hierarchy.add-to-list
does not do what you think does, and you probably don't want it.