* default.el and site-start.el
@ 2003-06-27 9:25 Michael M Mason
2003-06-27 11:42 ` Daniel Jensen
0 siblings, 1 reply; 6+ messages in thread
From: Michael M Mason @ 2003-06-27 9:25 UTC (permalink / raw)
As Emacs provides for two site-wide start-up files, I assume that they
are intended to be used for different purposes. What should go in
default.el and what should go in site-start.el?
--
Michael
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: default.el and site-start.el
2003-06-27 9:25 default.el and site-start.el Michael M Mason
@ 2003-06-27 11:42 ` Daniel Jensen
2003-06-27 18:20 ` Michael M Mason
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jensen @ 2003-06-27 11:42 UTC (permalink / raw)
Michael M Mason <mmmason@ntlworld.com> writes:
> As Emacs provides for two site-wide start-up files, I assume that they
> are intended to be used for different purposes. What should go in
> default.el and what should go in site-start.el?
Have you read the section "Init File" in the manual?
`C-h i g (Emacs) Init File'
--
Daniel Jensen
Editing is a rewording activity.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: default.el and site-start.el
2003-06-27 11:42 ` Daniel Jensen
@ 2003-06-27 18:20 ` Michael M Mason
2003-06-27 19:45 ` Kai Großjohann
2003-06-27 20:24 ` Stefan Monnier
0 siblings, 2 replies; 6+ messages in thread
From: Michael M Mason @ 2003-06-27 18:20 UTC (permalink / raw)
On Fri, 27 Jun 2003 13:42:24 +0200, Daniel Jensen
<daniel-news@bigwalter.net> wrote:
>Michael M Mason <mmmason@ntlworld.com> writes:
>
>> As Emacs provides for two site-wide start-up files, I assume that they
>> are intended to be used for different purposes. What should go in
>> default.el and what should go in site-start.el?
>
>Have you read the section "Init File" in the manual?
Yes: it doesn't explain why there are two site-wide init
files, hence the question.
--
Michael
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: default.el and site-start.el
2003-06-27 18:20 ` Michael M Mason
@ 2003-06-27 19:45 ` Kai Großjohann
2003-06-27 20:24 ` Stefan Monnier
1 sibling, 0 replies; 6+ messages in thread
From: Kai Großjohann @ 2003-06-27 19:45 UTC (permalink / raw)
Michael M Mason <admin@cambridge-optical.com> writes:
> Yes: it doesn't explain why there are two site-wide init
> files, hence the question.
site-start.el is loaded before .emacs, whereas default.el is loaded
after .emacs. People can set inhibit-default-init in their .emacs
to, well, inhibit loading of default.el. Obviously a variable
inhibit-site-start is not possible.
It's a matter of taste. If you think that the sysadmin should set up
some defaults that users can turn off easily, then default.el is for
you. If you think that the sysadmin should set up some defaults that
the users can then later each overwrite with their personal settings,
then site-start.el is for you.
Personally, I define lots of functions in site-start.el and tell
users to invoke them in their .emacs file. This way, they can choose
to use or not use certain "packages".
--
~/.signature
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: default.el and site-start.el
2003-06-27 18:20 ` Michael M Mason
2003-06-27 19:45 ` Kai Großjohann
@ 2003-06-27 20:24 ` Stefan Monnier
2003-06-29 1:46 ` David Masterson
1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2003-06-27 20:24 UTC (permalink / raw)
> Yes: it doesn't explain why there are two site-wide init
> files, hence the question.
site-start.el should be used to set up locally-installed packages
(i.e. setup autoloads for them, set the load-path, set the auto-mode-alist).
I don't actually use default.el because it can create surprise
when the user sets something in his .emacs and it gets overridden by
default.el.
It is generally desirable to keep "configuration" in those files to
a minimum: only setup locally installed packages, provide some more
meaningful defaults for news-server address, mail-server address and things
like that, but that's about it.
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: default.el and site-start.el
2003-06-27 20:24 ` Stefan Monnier
@ 2003-06-29 1:46 ` David Masterson
0 siblings, 0 replies; 6+ messages in thread
From: David Masterson @ 2003-06-29 1:46 UTC (permalink / raw)
>>>>> Stefan Monnier writes:
> I don't actually use default.el because it can create surprise when
> the user sets something in his .emacs and it gets overridden by
> default.el.
Users should tend toward 'setq' in their .emacs while admins should
tend toward 'defvar' (or 'defcustom') in default.el. (CMIMW) defvar
doesn't override the value set by setq.
--
David Masterson David DOT Masterson AT synopsys DOT com
Sr. R&D Engineer Synopsys, Inc.
Software Engineering Sunnyvale, CA
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-06-29 1:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-27 9:25 default.el and site-start.el Michael M Mason
2003-06-27 11:42 ` Daniel Jensen
2003-06-27 18:20 ` Michael M Mason
2003-06-27 19:45 ` Kai Großjohann
2003-06-27 20:24 ` Stefan Monnier
2003-06-29 1:46 ` David Masterson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).