home directory and .emacs file in Windows 7

emacs, installation, windows-7

Solution

You need to set `HOME` in environment variables in Computer settings (if I remember correctly), or put init file to default directory (just start Emacs, and press `C-x C-f ~/` to see what is actual directory). And as I remember, on Windows, init file could be called `_emacs`...

Problem

I installed emacs 23.3.1 in c:/emacs-23.3. Following the hints in this page, I updated the site-start.el to set HOME environment variable. ``` (setenv "HOME" "c:/users/USER/emacs") ``` And I made c:/users/USER/.emacs (like I did in unix/mac) to write the code for using slime, but it doesn't seem to start slime correctly. Is this a correct way of setting emacs in Windows 7? Where do I put the .emacs file?

Original source

Related problems