all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Javier Oviedo" <email_joviedo@yahoo.com>
Subject: emacs variables and Win Environment Variables
Date: Mon, 2 Feb 2004 09:41:44 -0500	[thread overview]
Message-ID: <bvlniv$785$1@home.itg.ti.com> (raw)

Hello all:

Can emacs recognize and use Windows environment variables? For example...

I currently use hard coded paths in these tow cases:

(setq load-path (cons "C:/data/joviedo/Emacs/site-lisp_21_2" load-path))

(defun my-load-DOTemacs ()
  (interactive)
  (find-file "C:/data/joviedo/emacs/_emacs21_2"))


Instead, I'd like to use:

(setq load-path (cons "%MY_EMACS_PATH%/site-lisp_21_2" load-path))

(defun my-load-DOTemacs ()
  (interactive)
  (find-file ""%MY_EMACS_PATH%/_emacs21_2"))

Obviously, I would define MY_EMACS_PATH as a valid path. I prefer to use a
windows environment variable, if possible...but I'd be open to using some
sort emacs global variable or #define like mechanism. My goal is to not have
hard coded paths and such things. I personally hate going in and modifying
these things in every location. I'd like one central place to make the
modification.

Thanks in advance for any assistance.



-- 
Javier

             reply	other threads:[~2004-02-02 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-02 14:41 Javier Oviedo [this message]
2004-02-02 16:20 ` emacs variables and Win Environment Variables Oliver Scholz
2004-02-02 23:30 ` Kevin Rodgers

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='bvlniv$785$1@home.itg.ti.com' \
    --to=email_joviedo@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.