Re: [O] Package System questions ?

2018-12-14 Thread David Masterson
Allen Li  writes:

> On Fri, Dec 14, 2018 at 3:46 PM David Masterson  
> wrote:
>>
>> Am I reading the startup process right?
>>
>> In GNU Emacs v26+, it appears that package-initialize is run out of
>> startup.el which is run (I think) before the various "init" files.
>> Therefore, it is hardcoding the assumptions that:
>>
>> 1. The standard packages are in site-lisp or elpa directories.
>> 2. The user packages are in .emacs.d/elpa directory.
>>
>> This means that, if you set up a number of package-archives to install
>> packages from (such as "melpa"), all of the packages must be installed
>> in "elpa" directories in your local setup.  This would seem to be a
>> configuration issue.
>
> From the NEWS file in emacs master:
>
> ** Emacs can now be configured using an early init file.
> The file is called 'early-init.el', in 'user-emacs-directory'.  It is
> loaded very early in the startup process: before graphical elements
> such as the tool bar are initialized, and before the package manager
> is initialized.  The primary purpose is to allow customizing how the
> package system is initialized given that initialization now happens
> before loading the regular init file (see below).

Thanks for the pointer.  Hadn't heard of this init file.

> Also, this question belongs on the Emacs mailing list rather than
> the Org mode mailing list.

Very good point.  I've been around long enough to know better.
--
David



Re: [O] Package System questions ?

2018-12-14 Thread Allen Li
On Fri, Dec 14, 2018 at 3:46 PM David Masterson  wrote:
>
> Am I reading the startup process right?
>
> In GNU Emacs v26+, it appears that package-initialize is run out of
> startup.el which is run (I think) before the various "init" files.
> Therefore, it is hardcoding the assumptions that:
>
> 1. The standard packages are in site-lisp or elpa directories.
> 2. The user packages are in .emacs.d/elpa directory.
>
> This means that, if you set up a number of package-archives to install
> packages from (such as "melpa"), all of the packages must be installed
> in "elpa" directories in your local setup.  This would seem to be a
> configuration issue.

>From the NEWS file in emacs master:

** Emacs can now be configured using an early init file.
The file is called 'early-init.el', in 'user-emacs-directory'.  It is
loaded very early in the startup process: before graphical elements
such as the tool bar are initialized, and before the package manager
is initialized.  The primary purpose is to allow customizing how the
package system is initialized given that initialization now happens
before loading the regular init file (see below).

Also, this question belongs on the Emacs mailing list rather than
the Org mode mailing list.

>
> True?
> --
> David
>



[O] Package System questions ?

2018-12-14 Thread David Masterson
Am I reading the startup process right?

In GNU Emacs v26+, it appears that package-initialize is run out of
startup.el which is run (I think) before the various "init" files.
Therefore, it is hardcoding the assumptions that:

1. The standard packages are in site-lisp or elpa directories.
2. The user packages are in .emacs.d/elpa directory.

This means that, if you set up a number of package-archives to install
packages from (such as "melpa"), all of the packages must be installed
in "elpa" directories in your local setup.  This would seem to be a
configuration issue.

True?
--
David