[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs variables and Win Environment Variables
From: |
Javier Oviedo |
Subject: |
emacs variables and Win Environment Variables |
Date: |
Mon, 2 Feb 2004 09:41:44 -0500 |
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
- emacs variables and Win Environment Variables,
Javier Oviedo <=