Commit 6505082e authored by Lin Jian's avatar Lin Jian Committed by Anderson Torres
Browse files

emacsWithPackages: load compiled site-start.el of $emacs if possible

The first log in *Message* before this patch:

  Loading /nix/store/bikm18vy6v07hmrvrll501i68440w9iw-emacs-29.1-rc1/share/emacs/site-lisp/site-start.el (source)...done

and after this patch:

  Loading /nix/store/bikm18vy6v07hmrvrll501i68440w9iw-emacs-29.1-rc1/share/emacs/site-lisp/site-start (native compiled elisp)...done
parent 1506ab49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ runCommand
        rm -f $siteStart $siteStartByteCompiled $subdirs $subdirsByteCompiled
        cat >"$siteStart" <<EOF
        (let ((inhibit-message t))
          (load-file "$emacs/share/emacs/site-lisp/site-start.el"))
          (load "$emacs/share/emacs/site-lisp/site-start"))
        ;; "$out/share/emacs/site-lisp" is added to load-path in wrapper.sh
        ;; "$out/share/emacs/native-lisp" is added to native-comp-eln-load-path in wrapper.sh
        (add-to-list 'exec-path "$out/bin")