[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sandbox environment for Emacs configuration

From: Christoph Scholtes
Subject: Sandbox environment for Emacs configuration
Date: Sat, 12 May 2012 09:59:52 -0600
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1

On Windows, I want to create a sandbox environment for Emacs to run in with an experimental configuration without affecting my regular setup.

I create site-startup.el in D:/devel/emacs with the following code:

(setq user-emacs-directory "D:/devel/emacs/dotemacsdotd")
(setenv "HOME" user-emacs-directory)

then invoked Emacs with

emacs -L D:/devel/emacs

where D:/devel/emacs just contains the site-startup.el.

However, Emacs still starts up with the init.el from ~/.emacs.d instead of D:/devel/emacs/dotemacsdotd/init.el.

My thought was that site-startup.el was loaded first, changes user-emacs-directory and HOME and then init.el is invoked from the new user-emacs-directory. Ultimately Emacs is running with dotemacsdotd as the new home directory.

Why does this not work? Is there a better way to do this?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]