Article View: gnu.emacs.help
Article #189104Can't add more than one directory to default load-path?
From: Jim Duncan
Date: Thu, 02 May 1991 20:06
Date: Thu, 02 May 1991 20:06
35 lines
2164 bytes
2164 bytes
I'm really confused. I have enough lisp stuff to add to emacs that I
wanted to put all in a separate directory. This helps folks discern
the elisp code included with emacs from the contributed code, and it
makes it a lot easier to upgrade to a newer version of emacs when you
don't have to copy a whole bunch of junk back into the new tree.
What I really want to do is to have *two* directories in the default load-
path, e.g. ("/usr/local/lib/emacs-lisp" "/usr/local/lib/emacs-18.57/lisp").
There are other ways to do this, e.g. put EMACSLOADPATH in everyone's
.cshrc (gross), or expect every user to add it to their personal
.emacs files (equally as gross). I can also put it in default.el, but
I'm trying to avoid that so that emacs starts quickly.
I tried to put
(setq load-path (append (list "/usr/local/lib/emacs-lisp") load-path))
in lisp/site-init.el, but that didn't work. During the build, it
appears that everything else in the file is parsed except this -- GNUS
variables and VM variables are set just fine, but the load-path only
has ("/usr/local/lib/emacs-18.57/lisp") in it. If M-x load-file
site-init.el, then it dutifully sets the load-path correctly.
I've been staring at this so long, I think I must have overlooked
something obvious. Why can't I get it to set the path from
site-init.el? What am I doing wrong?
Thanks.
Jim
--
Jim Duncan <jim@math.psu.edu> Penn State Math Dept Systems Administrator
"[A computer is] like an Old Testament god, with a lot of rules and no mercy."
Joseph Campbell
Technical Details
Message-ID:
<#01G_0e+1@cs.psu.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wuarchive!psuvax1!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,ba199fd1d3424e8b,start X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-05-02 19:23:59 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wuarchive!psuvax1!news From: jim@math.psu.edu (Jim Duncan) Newsgroups: gnu.emacs.help Subject: Can't add more than one directory to default load-path? Message-ID: <#01G_0e+1@cs.psu.edu> Date: 2 May 91 20:06:18 GMT Sender: news@cs.psu.edu (Usenet) Organization: Department of Mathematics, Pennsylvania State University Lines: 35 Nntp-Posting-Host: descartes.math.psu.edu