GNU provides compiled binary releases of Emacs for Windows. They require no installation or compilation.
- Download the version you want (the latest at the time of writing is
emacs-24.3-bin-i386.zip
).
- Optionally, verify its signature with GnuPG.
- Extract it to your flash drive.
If a %HOME%
environment variable exists, Emacs will use this as your home directory. Setting %HOME%
to D:\
will cause Emacs to read its configuration from D:\.emacs
or D:\.emacs.d\init.el
. It will also cause package.el
to install packages to D:\.emacs.d\elpa\
.
If you are permitted to modify environment variables for your user, go to Computer ⟶ Properties ⟶ Advanced system settings, click the Environment Variables button, and add or modify HOME
, setting it whatever drive letter your flash drive gets assigned. You will need to reboot (or at least log out and back in) before this variable takes effect.
If you are not allowed to modify this variable, you can use set HOME=D:\
in cmd.exe
, then execute Emacs from that shell. You may want to write a short batch script to do this and add it to your flash drive.
To run Emacs, use bin\runemacs.exe
.