Make sure, that package-directory-list
includes your path to elpa ~/.emacs.d/elpa
.
Then package.el
initializes some package, it adds name of package to
package-activated-list
and pushes package directory
(e.g. ~/.emacs.d/elpa/workgroups2-20130915.1509) to load-path
automatically.
For me it works as usual, I don't add any specific pathes for packages manually.
The value of package-enable-at-startup
is t
in my config.
package-enable-at-startup doc:
"Whether to activate installed packages when Emacs starts...If the
value of package-enable-at-startup
is nil, you can type M-x
package-initialize
to activate the package system at any time."
(require 'workgroups2)
is before package initialization in your config, try to move it below.