1983 |
@cindex startup (init file) |
@cindex startup (init file) |
1984 |
|
|
1985 |
When Emacs is started, it normally loads a Lisp program from the |
When Emacs is started, it normally loads a Lisp program from the |
1986 |
file @file{.emacs} or @file{.emacs.el} in your home directory. (You |
file @file{.emacs} or @file{.emacs.el} in your home directory. We |
1987 |
can also put it in a subdirectory @file{~/.emacs.d} and Emacs will |
call this file your @dfn{init file} because it specifies how to |
1988 |
still find it.) We call this file your @dfn{init file} because it |
initialize Emacs for you. You can use the command line switch |
1989 |
specifies how to initialize Emacs for you. You can use the command |
@samp{-q} to prevent loading your init file, and @samp{-u} (or |
1990 |
line switch @samp{-q} to prevent loading your init file, and @samp{-u} |
@samp{--user}) to specify a different user's init file (@pxref{Initial |
1991 |
(or @samp{--user}) to specify a different user's init file |
Options}). |
1992 |
(@pxref{Initial Options}). |
|
1993 |
|
You can also use @file{~/.emacs.d/init.el} as the init file. Emacs |
1994 |
|
tries this if it cannot find @file{~/.emacs} or @file{~/.emacs.el}. |
1995 |
|
|
1996 |
@cindex @file{default.el}, the default init file |
@cindex @file{default.el}, the default init file |
1997 |
There can also be a @dfn{default init file}, which is the library |
There can also be a @dfn{default init file}, which is the library |