Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!warwick!expya!admin From: admin@cs.exeter.ac.uk (System Administrator) Newsgroups: comp.emacs Subject: Re: a question on load-path (summary) Message-ID: Date: 9 Mar 89 15:05:55 GMT References: <14115.8903061754@expya.cs.exeter.ac.uk> Sender: admin@cs.exeter.ac.uk Organization: Computer Science Dept. - University of Exeter. UK Lines: 31 In-reply-to: admin@cs.exeter.ac.uk's message of 6 Mar 89 17:54:48 GMT > Is it possible to have more than 1 directory in the emacs load-path? > 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. Thanks to all the people who answered to this query. Just incase others may be interested here is a summary I can append to the load-path in default.el file (residing in the emacs lisp directory). This is not entrily satisfactory since default.el gets loaded after the .emacs file and it can also be inhibited by starting emacs with -q option. The best solution was to add the 2nd directory path to PATH_LOADSEARCH in the paths.h file and rebuild emacs. Where each directory is seperated by a `:' e.g. #define PATH_LOADSEARCH "/usr/local/lib/emacs/local:/usr/local/lib/emacs/lisp" sets the default load-path for all emacs users to be /usr/local/lib/emacs/local and /usr/local/lib/emacs/lisp -- Khalid Sattar JANET: admin@uk.ac.exeter.cs Computer Science Dept. UUCP: ukc!expya!admin University of Exeter