From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.help Subject: Re: How to customize load-path in v21.2.1? Date: Tue, 29 Oct 2002 17:32:51 GMT Organization: AT&T Broadband Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035913282 18501 80.91.224.249 (29 Oct 2002 17:41:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2002 17:41:22 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 186aMi-0004o8-00 for ; Tue, 29 Oct 2002 18:41:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 186aJd-0003VH-00; Tue, 29 Oct 2002 12:38:09 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!wn11feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 12.228.27.239 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: rwcrnsc51.ops.asp.att.net 1035912771 12.228.27.239 (Tue, 29 Oct 2002 17:32:51 GMT) Original-NNTP-Posting-Date: Tue, 29 Oct 2002 17:32:51 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:106516 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3066 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3066 Da Witch writes: >The transition from 20.7.2 to 21.2.1 is turning out to be painful... > >How do I customize load-path in 21.2.1? describe-variable suggests >that it is no longer customizable... > >hk > I'm not sure why it's not customizeable any more, but here's one way to do it programmatically. (mapcar (lambda (dir) (add-to-list 'load-path dir)) ;; these directories get added to the front of the load-path '("/path/to/dir" "/path/to/another/dir" ;; add more load-path directories here )) (mapcar (lambda (dir) (add-to-list 'load-path dir t)) ;; these directories get added to the end of the load-path '("/path/to/yet/another/dir" "/path/to/still/another/dir" ;; add more load-path directories here )) -- Mike Slass