about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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