Commit dae79445 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(Init File, Find Init): Add cross-references to where $HOME is described.

parent 0e21fc54
...@@ -2029,8 +2029,9 @@ Reference Manual}. ...@@ -2029,8 +2029,9 @@ Reference Manual}.
@cindex startup (init file) @cindex startup (init file)
When Emacs is started, it normally loads a Lisp program from the When Emacs is started, it normally loads a Lisp program from the
file @file{.emacs} or @file{.emacs.el} in your home directory. We file @file{.emacs} or @file{.emacs.el} in your home directory
call this file your @dfn{init file} because it specifies how to (see @ref{General Variables, HOME} if you don't know where that is).
We call this file your @dfn{init file} because it specifies how to
initialize Emacs for you. You can use the command line switch initialize Emacs for you. You can use the command line switch
@samp{-q} to prevent loading your init file, and @samp{-u} (or @samp{-q} to prevent loading your init file, and @samp{-u} (or
@samp{--user}) to specify a different user's init file (@pxref{Initial @samp{--user}) to specify a different user's init file (@pxref{Initial
...@@ -2442,11 +2443,12 @@ library. @xref{Hooks}. ...@@ -2442,11 +2443,12 @@ library. @xref{Hooks}.
@node Find Init @node Find Init
@subsection How Emacs Finds Your Init File @subsection How Emacs Finds Your Init File
Normally Emacs uses the environment variable @env{HOME} to find Normally Emacs uses the environment variable @env{HOME}
@file{.emacs}; that's what @samp{~} means in a file name. If (@pxref{General Variables, HOME}) to find @file{.emacs}; that's what
@file{.emacs} is not found inside @file{~/} (nor @file{.emacs.el}), @samp{~} means in a file name. If @file{.emacs} is not found inside
Emacs looks for @file{~/.emacs.d/init.el} (which, like @file{~/} (nor @file{.emacs.el}), Emacs looks for
@file{~/.emacs.el}, can be byte-compiled). @file{~/.emacs.d/init.el} (which, like @file{~/.emacs.el}, can be
byte-compiled).
However, if you run Emacs from a shell started by @code{su}, Emacs However, if you run Emacs from a shell started by @code{su}, Emacs
tries to find your own @file{.emacs}, not that of the user you are tries to find your own @file{.emacs}, not that of the user you are
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment