From fa189fa1b6efbfd978f375715b445d0856377e67 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 3 May 2021 21:31:29 -0500 Subject: Only update packages with C-u --- init.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 9f5fd13..aa284dd 100644 --- a/init.el +++ b/init.el @@ -934,10 +934,11 @@ if ripgrep is installed, otherwise `consult-grep'." (add-hook (intern (concat (symbol-name mode) "-hook")) #'paren-face-mode))) (setup (:straight restart-emacs) - (defun emacs-upgrade () + (defun emacs-upgrade (&optional update-packages) "Pull config, upgrade packages, restart Emacs." - (interactive) - (straight-pull-all) + (interactive "P") + (when update-packages + (straight-pull-all)) (emacs-git-pull-config) (restart-emacs))) -- cgit 1.4.1-21-gabe81