unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Masterson <David.Masterson@synopsys.com>
Subject: Re: How to configure Emacs to autoload modes?
Date: 21 Feb 2003 14:09:21 -0800	[thread overview]
Message-ID: <uptplb81a.fsf@synopsys.com> (raw)
In-Reply-To: 84k7fts6qu.fsf@lucy.is.informatik.uni-duisburg.de

>>>>> Kai Großjohann writes:
> David Masterson <David.Masterson@synopsys.com> writes:
>>>>>>> Kai Großjohann writes:

>>> (You could add the code to site-start.el if you want to avoid
>>> every user having to put it in their .emacs file.)

>> In the case of auto-mode-alist, don't you think it's preferrable to
>> put the code in default.el so that users can choose to not load it
>> via inhibit-default-init?

> Well.  People could still put (add-to-list 'auto-mode-alist ...)
> statements into their ~/.emacs.

> The problem that I, personally, see with inhibit-default-init is
> that it's an all-or-nothing thing.  There is no way to say "I like
> most of what default.el does, but please skip this setting here".

> That's why I my site-start.el contains a lot of functions, each
> setting up a specific package.  Then my users can pick and choose.
> (Or choose and pick?)

Ah, yes.  The old "chicken and egg" problem with Emacs configuration.
If you put everything in site-start.el, then potentially more things
get defined than the user really wants and the user has to undo it in
.emacs.  If you put everything in default.el, then the user may lose
control over what get's defined unless he sets inhibit-default-init.

Back in the day when I did this, I think I solved it the same way you
are.  I also put a default set of choices into default.el and just
made sure that the functions "do the right thing" if the user chooses
to set something up himself.

-- 
David Masterson                David DOT Masterson AT synopsys DOT com
Sr. R&D Engineer               Synopsys, Inc.
Software Engineering           Sunnyvale, CA

  reply	other threads:[~2003-02-21 22:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21  5:44 How to configure Emacs to autoload modes? Peter Wu
2003-02-21  5:50 ` Lucas
2003-02-21  9:20   ` Peter Wu
2003-02-21  9:42     ` Lucas
2003-02-21  9:50       ` Peter Wu
2003-02-21  9:58         ` Lucas
2003-02-21 11:35           ` Peter Wu
2003-02-21 11:50             ` Lucas
2003-02-21 17:51         ` Kevin Rodgers
2003-02-21 19:29           ` Lucas
2003-02-24  2:10           ` Peter Wu
2003-02-21 17:56 ` Kai Großjohann
2003-02-21 18:37   ` David Masterson
2003-02-21 20:45     ` Kai Großjohann
2003-02-21 22:09       ` David Masterson [this message]
2003-02-21 23:48         ` Stefan Monnier <foo@acm.com>

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=uptplb81a.fsf@synopsys.com \
    --to=david.masterson@synopsys.com \
    /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.
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).