From d9b2ef65fa605a2e16908733092b3b249e501068 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 8 Feb 2021 16:05:48 +0100 Subject: [PATCH] Emacs: Run straight-thaw-versions after straight-pull-all. Resets packages to the version specified in the lockfile. --- init.d/basics/package-management.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.d/basics/package-management.el b/init.d/basics/package-management.el index 9561a9a..683a605 100644 --- a/init.d/basics/package-management.el +++ b/init.d/basics/package-management.el @@ -64,7 +64,10 @@ (file-attributes (straight--build-dir)))))) (when (> (- (time-to-seconds) mtime-seconds) (* 60 60 24 days)) - (my/straight-update-repos))))) + (my/straight-update-repos)))) + + ;; Reset frozen packages. I use the lockfile to work around bugs. + (advice-add #'straight-pull-all :after #'straight-thaw-versions)) :hook ((emacs-startup . my/straight-check-last-update) ((after-init . straight-prune-build))))