From a3bef6eaef3f3d1bca82609edd5a37aea8483200 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 28 Apr 2021 15:48:58 -0500 Subject: Add `restart-emacs' --- init.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 00c9295..78ed21d 100644 --- a/init.el +++ b/init.el @@ -821,6 +821,13 @@ if ripgrep is installed, otherwise `consult-grep'." :repo "duckwork/electric-cursor")) (electric-cursor-mode +1)) +(setup (:straight restart-emacs) + (defun upgrade-packages-and-restart () + "Upgrade all packages and restart Emacs." + (interactive) + (straight-pull-all) + (restart-emacs))) + ;;; Programming -- cgit 1.4.1-21-gabe81