[Top][All Lists]

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

Re: About early-init right use.

From: tomas
Subject: Re: About early-init right use.
Date: Tue, 2 Apr 2019 17:42:22 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Apr 02, 2019 at 07:21:30AM -0700, Drew Adams wrote:
> > from the 27.0.50 manual (Node "Customization > Init File >
> > Early Init File"):
> > 
> >     This file is loaded before the
> >     package system and GUI is initialized, so in it you can customize
> >     variables that affect frame appearance as well as the package
>       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >     initialization process...
> > 
> >     the early init file is read before the GUI is initialized,
> >     so customizations related to GUI features will not work reliably
>          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >     in ‘early-init.el’.
> Seems a bit contradictory wrt "variables that affect frame
> appearance".  What variables are we talking about, if they
> are not "related to GUI features"?

Hm. I read it differently: putting things in early-init.el gives you
the chance to do things /before/ GUI and frame-appearance things are
initialized. Thus it gives you the power to fix things, but also
to break things.

Put it another way: you almost never want to put anything into
early-init.el -- unless you have the hunch that you need to change
something before GUIs get initialized (e.g. to let them "see" a
different variable value).

Or more TL;DR you better know why you are in there ;-D

-- tomás

Attachment: signature.asc
Description: Digital signature

reply via email to

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