help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you create a .emacs for a pre-compiled version of Emacs 24.3?


From: Juanma Barranquero
Subject: Re: How do you create a .emacs for a pre-compiled version of Emacs 24.3?
Date: Sun, 21 Jul 2013 15:07:30 +0200

On Sun, Jul 21, 2013 at 10:45 AM, Vagn Johansen <gonz808@hotmail.com> wrote:

> What is the value of HOME?

C:\> unset HOME & emacs -Q -batch --eval "(princ (getenv \"HOME\"))"
C:\Users\USERNAME\Appdata\Roaming

which is the value of APPDATA

You can take a look at w32.c:init_environment(), around line 2060 or so:

        if (get_folder_path != NULL)
          {
            profile_result = get_folder_path (NULL, CSIDL_APPDATA, NULL,
                                              0, default_home);

  Juanma



reply via email to

[Prev in Thread] Current Thread [Next in Thread]