Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "load-prefer-newer" for loading Spacemacs core #16676

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

sunlin7
Copy link
Contributor

@sunlin7 sunlin7 commented Nov 20, 2024

Currently the Spacemacs try to remove all *.elc at the beginning of startup, and set load-prefer-newer in the layers/+spacemacs/spacemacs-defaults/config.el.

Here we set the load-prefer-newer to t during startup to do similar work; and Spacemacs will cleaup the staled *.elc in the after startup hook.

(if dotspacemacs-byte-compile
(when (> 1 (spacemacs//dir-byte-compile-state
(concat spacemacs-core-directory "libs/")))
(byte-recompile-directory (concat spacemacs-core-directory "libs/") 0))
(spacemacs//remove-byte-compiled-files-in-dir spacemacs-core-directory))

@sunlin7 sunlin7 changed the title New option "dotspacemacs-load-prefer-newer" to control prefer newer Use "load-prefer-newer" for loading Spacemacs core Nov 21, 2024
@smile13241324 smile13241324 merged commit 6e50604 into syl20bnr:develop Nov 22, 2024
8 of 9 checks passed
@sunlin7 sunlin7 deleted the opt-prefer-new branch November 22, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants