all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Dynamically set the load-path
@ 2006-10-16 20:13 grein46087
  2006-10-16 23:02 ` Kevin Rodgers
  0 siblings, 1 reply; 3+ messages in thread
From: grein46087 @ 2006-10-16 20:13 UTC (permalink / raw)



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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-17  1:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-16 20:13 Dynamically set the load-path grein46087
2006-10-16 23:02 ` Kevin Rodgers
2006-10-17  1:08   ` grein46087

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.