help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Configure the package manager to sync with `load-path


From: Kevin Rodgers
Subject: Re: Configure the package manager to sync with `load-path
Date: Thu, 18 Oct 2012 21:01:08 -0600
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]