This script makes it easy to run Emacs in a clean, sandbox-like configuration, without affecting your personal Emacs configuration. It’s helpful for developing packages, troubleshooting configuration problems, etc.
Copy emacs-sandbox.sh
into your PATH
(or don’t, and run it from wherever you want).
emacs-sandbox.sh [OPTIONS] [EMACS-ARGS] Run Emacs in a "sandbox" user-emacs-directory. If no directory is specified, one is made with "mktemp -d" and removed when Emacs exits. Options --debug Show debug information and don't remove temp directory. -h, --help This. -- Optionally used to separate script arguments from Emacs arguments. -d, --dir DIR Use DIR as user-emacs-directory. -i, --install PACKAGE Install PACKAGE. -O, --no-org-repo Don't use the orgmode.org ELPA repo. -P, --no-package Don't initialize the package system. -R, --no-refresh-packages Don't refresh package lists.
Initial release.
Inspired by and some code copied from MELPA’s Makefile.
Bug reports, feature requests, suggestions — oh my!
GPLv3