nix-doom-emacs-unstraightened/pre-init.el
Marien Zwart 4f0f6fc607
Disable doom-initialize-core-packages at runtime
...by moving the existing hack from the CLI to init.el.

It's not really necessary to do this as early as init.el, but I'm coming
around to using init.el modifications as an alternative to using Doom's
profile loader. So we might as well do this in the same place.

This is not sufficient to make doom/help-packages work, but gets us one
step closer...
2024-04-08 21:11:36 +10:00

15 lines
530 B
EmacsLisp

;;; pre-init.el -*- lexical-binding: t; -*-
;; Added to init.el by nix-doom-emacs-unstraightened
(defadvice! nix-doom-skip-core-packages (&rest _)
"HACK: don't install straight and core packages.
`doom-initialize-core-packages' would no-op out if
`straight-recipe-repositories' is set, but we do not want to set
it. Just skip it entirely."
:override #'doom-initialize-core-packages
(doom-log "Assuming straight was already initialized"))
;; nix-doom-emacs-unstraightened additions end here.
;; Original init.el follows.