comparison lispref/os.texi @ 66543:673d94c09ed4

Document ~/.emacs.d/init.el.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 30 Oct 2005 03:55:56 +0000
parents b6de4c2b1b34
children 067115a6e738 7beb78bc1f8e
comparison
equal deleted inserted replaced
66542:33b15a14f9b3 66543:673d94c09ed4
178 @cindex init file 178 @cindex init file
179 @cindex @file{.emacs} 179 @cindex @file{.emacs}
180 180
181 When you start Emacs, it normally attempts to load your @dfn{init 181 When you start Emacs, it normally attempts to load your @dfn{init
182 file}, a file in your home directory. Its normal name is 182 file}, a file in your home directory. Its normal name is
183 @file{.emacs}, but you can alternatively call it @file{.emacs.el}. 183 @file{.emacs}, but you can also call it @file{.emacs.el}.
184 You can also store it inside a subdirectory @file{.emacs.d}. 184 Alternatively, you can use a file named @file{init.el} in a
185 Whichever place you use, you can also compile the file (@pxref{Byte 185 subdirectory @file{.emacs.d}. Whichever place you use, you can also
186 Compilation}); then the actual file loaded will be @file{.emacs.elc}. 186 compile the file (@pxref{Byte Compilation}); then the actual file
187 loaded will be @file{.emacs.elc} or @file{init.elc}.
187 188
188 The command-line switches @samp{-q}, @samp{-Q}, and @samp{-u} 189 The command-line switches @samp{-q}, @samp{-Q}, and @samp{-u}
189 control whether and where to find the init file; @samp{-q} (and the 190 control whether and where to find the init file; @samp{-q} (and the
190 stronger @samp{-Q}) says not to load an init file, while @samp{-u 191 stronger @samp{-Q}) says not to load an init file, while @samp{-u
191 @var{user}} says to load @var{user}'s init file instead of yours. 192 @var{user}} says to load @var{user}'s init file instead of yours.