Path: utzoo!attcan!uunet!spock!kim From: kim@spock (Kim Letkeman) Newsgroups: comp.emacs Subject: Re: load-path Message-ID: <3829@kim> Date: 7 Jul 90 15:50:52 GMT References: <9007051730.AA01785@curley.osf.org> Organization: Mitel. Kanata (Ontario). Canada. Lines: 31 In-reply-to: meissner@osf.org's message of 5 Jul 90 17:30:52 GMT I didn't see the original article, and the reply in which I saw this question did not post an attribution, so I'm hoping the original poster is still looking for the answer. | I have been recently compiling up GNU emacs 18.55 and have run into a bit of a | problem with the load-path variable. The default load-path on our system is | "/usr/local/emacs/lisp". I would like to ADD to the list "/usr/local/lisp". | | I tried setting it in "site-init.el" when compiling. I used: | | (setq load-path (append (list "/usr/local/lisp") load-path)) | | This had NO EFFECT. When I fired up the new emacs and checked to see what my | load-path was is only showed "/usr/local/emacs/lisp". Putting the 'setq' | statement into the default.el helps, but if someone needs that path for things | in their ~/.emacs file, it causes an init file error (and rightfully so). I am certain that there is some standard way to have a local lisp directory on the emacs path without resorting to the emacs load path environment variable. But the following change to your original setq on load-path works for me to add my local directory to the emacs path. Note the addition of the append in front of load-path. (setq load-path (append (list (expand-file-name "~kim/elisp")) (append load-path))) Kim -- Kim Letkeman mitel!spock!kim@uunet.uu.net