> I'm a brand-new Win 7 user. Previously have used Emacs on Win XP with no
> problems. In Win 7, I seem unable to create a file in c:\ named ".emacs".
> The OS refuses to recognize this as a valid filename. What should I do?

Write the initialization code in a new buffer (for example,
*scratch*), and save it to ~/.emacs (i.e., do C-x C-f ~/.emacs <RET>).

Emacs will not write it to C:\, but to
C:/Users/YourUserName/AppData/Roaming/.emacs, which is the directory
pointed to by the variable %APPDATA%. In absence of a HOME variable,
this is the  place Emacs uses as user data directory on Windows.

    Juanma


Reply via email to