From 4266fc90dfa6ad6168ef379f0a6da70a07fbcd65 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Mon, 10 Oct 2022 20:49:21 +0100 Subject: Add usage comments --- .emacs.d/lisp/init-packages.el | 2 ++ 1 file changed, 2 insertions(+) (limited to '.emacs.d/lisp') diff --git a/.emacs.d/lisp/init-packages.el b/.emacs.d/lisp/init-packages.el index 968991c..68f7c43 100644 --- a/.emacs.d/lisp/init-packages.el +++ b/.emacs.d/lisp/init-packages.el @@ -48,6 +48,7 @@ that everything loaded by `require' or `use-package' is re-loaded." (setq features (seq-filter '(lambda (elt) (not (string-prefix-p "init-" (prin1-to-string elt)))) features)) (funcall func)) +;; emacs --batch -l "~/.emacs.d/init.el" -f "my/upgrade-packages" (defun my/upgrade-packages () "Upgrade all packages installed with straight." (interactive) @@ -58,6 +59,7 @@ that everything loaded by `require' or `use-package' is re-loaded." ;; Do this automatically, as we can always revert and thaw (run-straight-lock-file-function 'straight-freeze-versions)) +;; emacs --batch -l "~/.emacs.d/init.el" -f "my/thaw-packages" (defun my/thaw-packages () "Restore all packages to the versions in the straight lockfile." (interactive) -- cgit 1.4.1-2-gfad0