diff options
| author | Eli Zaretskii | 2001-05-07 11:14:44 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-05-07 11:14:44 +0000 |
| commit | 14a893ee628356f3b0ae4c278e3bfde25987e96e (patch) | |
| tree | 9714014051700465a7ca8f393b41357e35b007ce | |
| parent | 3b703ce97ecd973418471cee4c99a21b0a3d8541 (diff) | |
| download | emacs-14a893ee628356f3b0ae4c278e3bfde25987e96e.tar.gz emacs-14a893ee628356f3b0ae4c278e3bfde25987e96e.zip | |
(Init File): Say explicitly that site-start.el is also searched along
load-path. Recommend where to put default.el and site-start.el. Add
index entries for site-start.el and default.el.
| -rw-r--r-- | man/custom.texi | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/man/custom.texi b/man/custom.texi index c8ca955d915..e499af35038 100644 --- a/man/custom.texi +++ b/man/custom.texi | |||
| @@ -2037,6 +2037,7 @@ for you. You can use the command line switch @samp{-q} to prevent | |||
| 2037 | loading your init file, and @samp{-u} (or @samp{--user}) to specify a | 2037 | loading your init file, and @samp{-u} (or @samp{--user}) to specify a |
| 2038 | different user's init file (@pxref{Entering Emacs}). | 2038 | different user's init file (@pxref{Entering Emacs}). |
| 2039 | 2039 | ||
| 2040 | @cindex @file{default.el}, the default init file | ||
| 2040 | There can also be a @dfn{default init file}, which is the library | 2041 | There can also be a @dfn{default init file}, which is the library |
| 2041 | named @file{default.el}, found via the standard search path for | 2042 | named @file{default.el}, found via the standard search path for |
| 2042 | libraries. The Emacs distribution contains no such library; your site | 2043 | libraries. The Emacs distribution contains no such library; your site |
| @@ -2046,10 +2047,21 @@ But your init file, if any, is loaded first; if it sets | |||
| 2046 | @code{inhibit-default-init} non-@code{nil}, then @file{default} is not | 2047 | @code{inhibit-default-init} non-@code{nil}, then @file{default} is not |
| 2047 | loaded. | 2048 | loaded. |
| 2048 | 2049 | ||
| 2050 | @cindex site init file | ||
| 2051 | @cindex @file{site-start.el}, the site startup file | ||
| 2049 | Your site may also have a @dfn{site startup file}; this is named | 2052 | Your site may also have a @dfn{site startup file}; this is named |
| 2050 | @file{site-start.el}, if it exists. Emacs loads this library before it | 2053 | @file{site-start.el}, if it exists. Like @file{default.el}, Emacs |
| 2051 | loads your init file. To inhibit loading of this library, use the | 2054 | finds this file via the standard search path for Lisp libraries. |
| 2052 | option @samp{-no-site-file}. @xref{Initial Options}. | 2055 | Emacs loads this library before it loads your init file. To inhibit |
| 2056 | loading of this library, use the option @samp{-no-site-file}. | ||
| 2057 | @xref{Initial Options}. | ||
| 2058 | |||
| 2059 | You can place @file{default.el} and @file{site-start.el} in any of | ||
| 2060 | the directories which Emacs searches for Lisp libraries. The variable | ||
| 2061 | @code{load-path} (@pxref{Lisp Libraries}) specifies these directories. | ||
| 2062 | Many sites put these files in the @file{site-lisp} subdirectory of the | ||
| 2063 | Emacs installation directory, typically | ||
| 2064 | @file{/usr/local/share/emacs/site-lisp}. | ||
| 2053 | 2065 | ||
| 2054 | If you have a large amount of code in your @file{.emacs} file, you | 2066 | If you have a large amount of code in your @file{.emacs} file, you |
| 2055 | should rename it to @file{~/.emacs.el}, and byte-compile it. @xref{Byte | 2067 | should rename it to @file{~/.emacs.el}, and byte-compile it. @xref{Byte |