diff --git a/default.nix b/default.nix index 68b2df9d..00dcd76a 100644 --- a/default.nix +++ b/default.nix @@ -239,19 +239,6 @@ let ''; in (emacsPackages.emacsWithPackages (epkgs: [ load-config-from-site ])); - # create a `emacs.d` dir to be loaded using `--init-directory` flag from Emacs 29+ - # this will allow proper usage of `early-init.el`, fixing FOUC issues and improving - # startup performance - emacs-dir = runCommand "emacs-dir" { } '' - mkdir -p $out - cat > $out/early-init.el << EOF - (load "${doom-emacs}/early-init.el") - EOF - cat > $out/init.el << EOF - (load "default.el") - EOF - ''; - build-summary = writeShellScript "build-summary" '' printf "\n${fmt.green}Successfully built nix-doom-emacs!${fmt.reset}\n" printf "${fmt.bold} ==> doom-emacs is installed to ${doom-emacs}${fmt.reset}\n" @@ -263,7 +250,7 @@ in emacs.overrideAttrs (esuper: # `--init-directory` is supported by Emacs 29+ only initDirArgs = lib.optionalString isEmacs29 '' if [[ $(basename $1) == emacs ]] || [[ $(basename $1) == emacs-* ]]; then - wrapArgs+=(--add-flags '--init-directory ${emacs-dir}') + wrapArgs+=(--add-flags '--init-directory ${doom-emacs}') fi ''; cmd = ''