From: grein46087 <hgrei@hotmail.com>
Subject: Dynamically set the load-path
Date: Mon, 16 Oct 2006 13:13:15 -0700 (PDT) [thread overview]
Message-ID: <6842290.post@talk.nabble.com> (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.
next reply other threads:[~2006-10-16 20:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-16 20:13 grein46087 [this message]
2006-10-16 23:02 ` Dynamically set the load-path Kevin Rodgers
2006-10-17 1:08 ` grein46087
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6842290.post@talk.nabble.com \
--to=hgrei@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.