From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Dynamically set the load-path
Date: Mon, 16 Oct 2006 17:02:50 -0600 [thread overview]
Message-ID: <eh1341$k77$1@sea.gmane.org> (raw)
In-Reply-To: <6842290.post@talk.nabble.com>
grein46087 wrote:
> 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 ))
There's your problem. You're appending the value of load-path to
a list of two symbols. You mean to do this:
(setq load-path
(cons my-emacs-lisp (append my-load-path load-path)))
> (message "GEEK: load-path=[%s]" load-path )
--
Kevin
next prev parent reply other threads:[~2006-10-16 23:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-16 20:13 Dynamically set the load-path grein46087
2006-10-16 23:02 ` Kevin Rodgers [this message]
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='eh1341$k77$1@sea.gmane.org' \
--to=ihs_4664@yahoo.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.