Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Configure the package manager to sync with `load-path

6 views
Skip to first unread message

Avery Chan

unread,
Sep 20, 2012, 1:27:17 AM9/20/12
to help-gn...@gnu.org
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?

Thanks!

Avery

version: GNU Emacs 24.0.92.1 (i386-apple-darwin11.2.0, NS apple-appkit-1138.23) of 2011-12-14
-- 
Avery Chan | Co-founder

Tassilo Horn

unread,
Sep 20, 2012, 2:48:04 AM9/20/12
to help-gn...@gnu.org
Avery Chan <av...@ootbdev.com> writes:

> 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?

If you mean `M-x package-list-packages RET' with package manager, which
seems likely given the ~/.emacs.d/elpa/ path below, then this should
happen automatically.

> version: GNU Emacs 24.0.92.1 (i386-apple-darwin11.2.0, NS
> apple-appkit-1138.23) of 2011-12-14

Maybe you could try a recent released version of emacs (24.1, 24.2)
instead of some outdated snapshot?

Bye,
Tassilo


Kevin Rodgers

unread,
Oct 18, 2012, 11:01:08 PM10/18/12
to help-gn...@gnu.org
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


0 new messages