marienz / nix-doom-emacs-unstraightened

Builds Doom Emacs using Nix
Apache License 2.0
64 stars 5 forks source link

Literate config does not work #35

Open ArthurHeymans opened 3 weeks ago

ArthurHeymans commented 3 weeks ago

literate config does not work for me.

The package.el and config.el are not generated based on my config.org file.

marienz commented 3 weeks ago

I'm a bit confused by that feature: if I understand it correctly it runs early in doom sync, presumably before packages.el is read (or you wouldn't be able to use it to generate packages.el), which'd mean it uses the org-mode bundled with Emacs instead of the one specified by Doom's modules/lang/org/packages.el...

If that is how it works, it may take a bit of tinkering to support something similar. My first idea was to add something to build-doom-profile.sh, but that wouldn't work for packages.el (we read that much earlier). My second idea is to add support for running doom +org tangle (assuming that works without dependencies installed) very early (before building Emacs packages), which would work for not just packages.el but also init.el.

This will take a bit of experimentation... I can't just use / trigger that literate config module, it's tied to doom sync, which we don't have an exact equivalent of.

ArthurHeymans commented 2 weeks ago

Alright, thanks for looking into this!