From 6fa623d9d78db0a93b17abddad618576b91b61ba Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 21 Nov 2020 11:46:03 +0100 Subject: [PATCH] Add simple makefile target to start a sandbox version of Emacs This starts emacs in the local copy of the .emacs.d directory we are currently in, by creating a new `sandbox` directory as home directory, linking the current directory as `.emacs.d` into there, and starting emacs. --- .gitignore | 1 + Makefile | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 4cb9263..aaed92c 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,4 @@ /.python-environments/ /transient/ /dired-history +/sandbox/.emacs.d diff --git a/Makefile b/Makefile index 26965e9..a2629e3 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,11 @@ distclean: clean rm -rfv elpa git checkout elpa +sandbox-start: + mkdir -p sandbox + ln -s $(PWD) sandbox/.emacs.d + HOME=$(PWD)/sandbox emacs + .SUFFIXES: .el .elc .el.elc: @echo "Compiling $<"