diff options
Diffstat (limited to 'doc/emacs')
-rw-r--r-- | doc/emacs/cmdargs.texi | 6 | ||||
-rw-r--r-- | doc/emacs/custom.texi | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi index 2e2767ccada..25a25268889 100644 --- a/doc/emacs/cmdargs.texi +++ b/doc/emacs/cmdargs.texi @@ -529,7 +529,11 @@ otherwise. @item HOME @vindex HOME@r{, environment variable} The location of your files in the directory tree; used for -expansion of file names starting with a tilde (@file{~}). On MS-DOS, +expansion of file names starting with a tilde (@file{~}). +If set to a relative file name, Emacs expands @file{~} to the +corresponding absolute file name. If unset, it normally defaults to +the home directory of the user given by @env{LOGNAME}, @env{USER} or +your user ID, or to @file{/} if all else fails. On MS-DOS, it defaults to the directory from which Emacs was started, with @samp{/bin} removed from the end if it was present. On Windows, the default value of @env{HOME} is the @file{Application Data} diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index ddde5b22e6b..3dbe8f8003f 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi @@ -2557,10 +2557,9 @@ library. @xref{Hooks}. @node Find Init @subsection How Emacs Finds Your Init File - Normally Emacs uses the environment variable @env{HOME} -(@pxref{General Variables, HOME}) to find @file{.emacs}; that's what -@samp{~} means in a file name. If @file{.emacs} is not found inside -@file{~/} (nor @file{.emacs.el}), Emacs looks for + Normally Emacs uses your home directory to find @file{~/.emacs}; +that's what @samp{~} means in a file name. @xref{General Variables, HOME}. +If neither @file{~/.emacs} nor @file{~/.emacs.el} is found, Emacs looks for @file{~/.emacs.d/init.el} (which, like @file{~/.emacs.el}, can be byte-compiled). |