about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-05-03 21:31:29 -0500
committerCase Duckworth2021-05-03 21:31:29 -0500
commitfa189fa1b6efbfd978f375715b445d0856377e67 (patch)
treea79d9ff09e0f6782e0798bf80f47326ed743e8b6
parentStop asking to exit Gnus (diff)
downloademacs-fa189fa1b6efbfd978f375715b445d0856377e67.tar.gz
emacs-fa189fa1b6efbfd978f375715b445d0856377e67.zip
Only update packages with C-u
-rw-r--r--init.el7
1 files 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'."
934 (add-hook (intern (concat (symbol-name mode) "-hook")) #'paren-face-mode))) 934 (add-hook (intern (concat (symbol-name mode) "-hook")) #'paren-face-mode)))
935 935
936(setup (:straight restart-emacs) 936(setup (:straight restart-emacs)
937 (defun emacs-upgrade () 937 (defun emacs-upgrade (&optional update-packages)
938 "Pull config, upgrade packages, restart Emacs." 938 "Pull config, upgrade packages, restart Emacs."
939 (interactive) 939 (interactive "P")
940 (straight-pull-all) 940 (when update-packages
941 (straight-pull-all))
941 (emacs-git-pull-config) 942 (emacs-git-pull-config)
942 (restart-emacs))) 943 (restart-emacs)))
943 944