I’m posting this mainly to remind myself how I did it, when the time comes to do it again. I added some detailed instructions (like where to cd to and so on) in case somebody else is interested in these instructions. So let’s see:
./configure --prefix='c:/Program Files/Emacs' --with-texmf-dir='c:/ProgramData/MiKTeX/2.7' --with-lispdir='c:/Program Files/Emacs/site-lisp'
texmfdir is specific to MiXTeX, and if you’re using a version of MiXTeX older than (I think) 2.5, you’d probably have to use something like
c:/localtexmfinstead. Finally, I had to use the
lispdiroption because configure wouldn’t find the
site-lispdirectory without it - even though it’s right there in the prefix directory. Go figure.
--disable-previewoption, which I should probably have done. According to the docs, the preview package doesn’t currently work with this version of Emacs, and sure enough, it doesn’t seem to work although I didn’t have any trouble building and installing it.
make install(this is the step that actually requires administrator privileges, so you might be fine running everything up to this point as a non-privileged user)
site-lispdirectory and added these lines (collected from various places in the docs):