about summary refs log tree commit diff stats
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-10-10 20:49:21 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-10-10 20:49:21 +0100
commit4266fc90dfa6ad6168ef379f0a6da70a07fbcd65 (patch)
tree5832adb5f230b4df368408a97fe98e0b4eeecc5c /.emacs.d/lisp
parent75aa147246af45652eec3827bf9b38fb63523ca2 (diff)
downloaddotfiles-4266fc90dfa6ad6168ef379f0a6da70a07fbcd65.tar.gz
Add usage comments
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/init-packages.el2
1 files changed, 2 insertions, 0 deletions
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)