Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!mit-eddie!husc6!spdcc!lexicon!rk From: rk@lexicon.com (Bob Kukura) Newsgroups: comp.emacs Subject: Re: a question on load-path Message-ID: <385@lexicon.com> Date: 8 Mar 89 19:05:08 GMT References: <14115.8903061754@expya.cs.exeter.ac.uk> Organization: Lexicon, Inc., Waltham, MA Lines: 40 In-reply-to: admin@cs.exeter.ac.uk's message of 6 Mar 89 17:54:48 GMT In article <14115.8903061754@expya.cs.exeter.ac.uk> admin@cs.exeter.ac.uk (System Administrator) writes: > Is it possible to have more than 1 directory in the emacs load-path? > Yes. > I know that I can use the environment variable EMACSLOADPATH and also > put a lisp code in my .emacs file. I would like to know if I can make > the default load-path to have more than 1 directory. > > I have tried putting > > (setq load-path (cons "/u2/misc/admin/elib" load-path)) > > in the site-init.el, but this does not get passed on when temacs is > dumped into xemacs. Edit your src/paths.h file in your emacs distribution like this: #define PATH_LOADSEARCH "/usr/local/src/gnu/dist-18.53/lisp:/usr/local/src/gnu/emacs-lisp" This, and EMACSLOADPATH, are interpreted just like PATH environment variable strings, with each path separated by a colon. They are read as emacs starts up and are converted into the load-path lisp object, which is a list. > I am using gnu emacs 18.51 I've only tried this on 18.53 > Please email replies. I had a helluva time trying to find out how to do this too, so I thought others might be interested. I finally found a function called decode_env_path in src/emacs.c. -- -Bob Kukura smart: rk@lexicon.com dumb: {husc6,linus,harvard,bbn}!spdcc!lexicon!rk phone: (617) 891-6790