On 9/19/12 11:27 PM, Avery Chan wrote:
> I have the package manager download packages but I'm having to set my load path
> to each of the individually downloaded packages. Is there a way to have my
> load-path set so that I don't have to manually configure my .emacs file each time?
>
> For example:
>
> I install color-themes via the package manager. It is installed at the following
> path:
> /Users/achan/.emacs.d/elpa/color-theme-6.5.5/
>
> In order to successfully add:
>
> (require 'color-theme)
>
> to my .emacs file, I need to add-on
>
> (add-to-list 'load-path "~/.emacs.d/elpa/color-theme-20080305.834")
>
> for each package that I install. Is there a way to set load-path to recursively
> scan so I don't have to do this?
Not recursively, but you can do this:
(let ((default-directory "~/emacs.d/elpa"))
(normal-top-level-add-subdirs-to-load-path))
--
Kevin Rodgers
Denver, Colorado, USA