From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: grein46087 Newsgroups: gmane.emacs.help Subject: Dynamically set the load-path Date: Mon, 16 Oct 2006 13:13:15 -0700 (PDT) Message-ID: <6842290.post@talk.nabble.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161032270 14773 80.91.229.2 (16 Oct 2006 20:57:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Oct 2006 20:57:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 16 22:57:48 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GZZWg-0003iW-75 for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Oct 2006 22:57:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZZWf-00043S-EE for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Oct 2006 16:57:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GZYpq-0004V4-Vk for help-gnu-emacs@gnu.org; Mon, 16 Oct 2006 16:13:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GZYpo-0004OW-R1 for Help-gnu-emacs@gnu.org; Mon, 16 Oct 2006 16:13:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZYpo-0004Nu-Av for Help-gnu-emacs@gnu.org; Mon, 16 Oct 2006 16:13:16 -0400 Original-Received: from [72.21.53.35] (helo=talk.nabble.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GZYyz-0007TT-SY for Help-gnu-emacs@gnu.org; Mon, 16 Oct 2006 16:22:46 -0400 Original-Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GZYpn-0005cl-1G for Help-gnu-emacs@gnu.org; Mon, 16 Oct 2006 13:13:15 -0700 Original-To: Help-gnu-emacs@gnu.org X-Nabble-From: hgrei@hotmail.com X-Mailman-Approved-At: Mon, 16 Oct 2006 16:57:22 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38082 Archived-At: I am looking to set the load path depending onenvironment, Here are two sonditional statements, and I will be looking to add another, The problem I have is the load-path does not evaluate the variables, my-load-path correctly. Is there something I not doing correctly. Any help is greatly appreciated (setq my-emacs-lisp "~/.emacs.d/lisp/") (defvar my-load-path nil) (when (eq system-type 'windows-nt) (message "GEEK: Setting my-load-path for Windows-NT" ) (setq my-load-path (append '( "~/.emacs.d/lisp/" "c:/bin/emacs/lisp" "c:/bin/emacs/site-lisp" "c:/gnu/emacs-21.3/lisp" "c:/gnu/emacs-21.3/site-lisp" ) my-load-path))) (when (eq system-type 'mac) (message "GEEK: Setting my-load-path for MAC" ) (setq my-load-path (append '( "~/.emacs.d/lisp/" "/Applications/Emacs.app/Contents/Resources/lisp" "/Applications/Emacs.app/Contents/Resources/site-lisp" ) my-load-path))) (setq load-path (append '(my-emacs-lisp my-load-path) load-path )) (message "GEEK: load-path=[%s]" load-path ) -- View this message in context: http://www.nabble.com/Dynamically-set-the-load-path-tf2454903.html#a6842290 Sent from the Emacs - Help mailing list archive at Nabble.com.