emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Package initialization


From: Stefan Monnier
Subject: Re: Package initialization
Date: Sun, 19 Jul 2015 20:11:47 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Before the package stuff everybody had this in .emacs:

> (require 'slime-autoloads)
> (slime-setup)

> Now with the package stuff the (require 'slime-autoloads) line is
> unnecessary.  But additionally somebody claimed that it's idiomatic to
> call slime-setup automatically in slime-autoloads.

> I quite like to see the explicit call to slime-setup in my .emacs, but
> others might not.

Since it's a configuration choice, it should not be imposed by the
autoloads file.  Instead, the way this is normally handled is by making
a slime-minor-mode, which when enabled does something like
(slime-setup), and when disabled, undoes it.

The important aspect is that it should be possible to install a package
without using it, so the autoloads file should only set things up so
that they *can* be used, but not so that they're automatically used
without being explicitly requested.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]