Skip to content

default.el behaves subtly differently from init.el #457

Open
@starptr

Description

When using emacsWithPackagesFromUsePackage, the defaultInitFile option cannot be used as a drop-in replacement for ~/.emacs.d/init.el. There are strange differences in behavior between the default init file (called default.el from now) and the init.el init file such that expressions that work perfectly fine in init.el do not work in default.el. (See noctuid/general.el#549 for just one example. As another example, :bind in a use-package expression does not work in some situations, but I haven't had a chance to triage this issue yet.)

Perhaps this fact is actually obvious to experienced users of emacs. I am not an experienced user, but it would be nice for this to be at least documented somewhere. An even better fix ("hotfix" might be a better word here if this is actually an upstream bug in emacs itself and default.el is supposed to behave exactly the same as init.el) would be to wrap the derivation and use the --init-directory CLI flag to pass in a derivation of the init.el file, avoiding usage of default.el altogether.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions