Wrap Emacs with configuration

NeoVim has pkgs.wrapNeovim that takes a configuration and packages, and provides a working NeoVim derivation. Emacs has a wrapper for packages, .emacsWithPackages, but I can’t supply my own config to it. I’m trying to write a derivation that uses my ELisp configuration out-of-the-box. How can I achieve this?

You can find that functionality in the emacs-overlay.

1 Like

Thank you, but that doesn’t seem to apply the configuration too, just installs the packages it asks for. I want to nix run and get an Emacs that uses a different init.el than ~/.emacs.d/init.el, if that helps.