diff options
author | Lin Jian <me@linj.tech> | 2023-08-26 11:26:13 +0800 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-08-28 15:46:04 +0000 |
commit | 6505082e724da1906003aa17ae9fc9e550e86ef6 (patch) | |
tree | b9f41ee9ca2818bff48b0872508eb000af135294 /pkgs/build-support/emacs | |
parent | 1506ab49e39cb208774ac49c480b77e9edb4dea7 (diff) |
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
Diffstat (limited to 'pkgs/build-support/emacs')
-rw-r--r-- | pkgs/build-support/emacs/wrapper.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/emacs/wrapper.nix b/pkgs/build-support/emacs/wrapper.nix index 2f8f15d7da54e..6f46bb692a43e 100644 --- a/pkgs/build-support/emacs/wrapper.nix +++ b/pkgs/build-support/emacs/wrapper.nix @@ -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") |