all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: nisse@lysator.liu.se (Niels Möller)
Subject: Documentation on default.el vs site-start.el
Date: 19 Oct 2005 12:44:42 +0200	[thread overview]
Message-ID: <nn8xwpwztx.fsf@adriana.lysator.liu.se> (raw)

I'm using

GNU Emacs 21.4.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-03-17 on trouble, modified by Debian

and the emacs manual that describes itself as "it corresponds to GNU
Emacs version 21.3".

The manual describes "site-start.el" in the section "The Init File,
`~/.emacs'", like this:

     Your site may also have a "site startup file"; this is named
  `site-start.el', if it exists.  Like `default.el', Emacs finds this
  file via the standard search path for Lisp libraries.  Emacs loads this
  library before it loads your init file.  To inhibit loading of this
  library, use the option `-no-site-file'.  *Note Initial Options::.

This doesn't explain when one should use default.el and when one
should use site-start.el. The documentation string for site-run-file
in startup.el gives the following advice:

  Don't use the `site-start.el' file for things some users may not like.
  Put them in `default.el' instead, so that users can more easily
  override them.  Users can prevent loading `default.el' with the `-q'
  option or by setting `inhibit-default-init' in their own init files,
  but inhibiting `site-start.el' requires `--no-site-file', which
  is less convenient.

I think this is good advice, and it would make sense to include it
also in the manual. And perhaps also explain further what's the
motivation for having two different site configuration files.

(At the moment, I'm also bug-reporting a debian package that puts
"things some users may not like" into configuration files loaded with
site-start.el, and I'm trying to explain why that is a bad idea.
Clearer documentation on what site-start.el really is intended for
would help people to use it in the right way).

Regards,
/Niels

             reply	other threads:[~2005-10-19 10:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-19 10:44 Niels Möller [this message]
2005-10-19 15:32 ` Documentation on default.el vs site-start.el Kevin Rodgers
2005-10-20  0:29   ` Johan Bockgård
2005-10-20  4:54   ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nn8xwpwztx.fsf@adriana.lysator.liu.se \
    --to=nisse@lysator.liu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.