summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-04-28 15:48:58 -0500
committerCase Duckworth2021-04-28 15:48:58 -0500
commita3bef6eaef3f3d1bca82609edd5a37aea8483200 (patch)
tree01d9de41bb88bc7f066157102b21553505f6a941
parentAutomatically 'view' read-only buffers, and 'read' view buffers (diff)
downloademacs-a3bef6eaef3f3d1bca82609edd5a37aea8483200.tar.gz
emacs-a3bef6eaef3f3d1bca82609edd5a37aea8483200.zip
Add `restart-emacs'
-rw-r--r--init.el7
1 files changed, 7 insertions, 0 deletions
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'."
821 :repo "duckwork/electric-cursor")) 821 :repo "duckwork/electric-cursor"))
822 (electric-cursor-mode +1)) 822 (electric-cursor-mode +1))
823 823
824(setup (:straight restart-emacs)
825 (defun upgrade-packages-and-restart ()
826 "Upgrade all packages and restart Emacs."
827 (interactive)
828 (straight-pull-all)
829 (restart-emacs)))
830
824 831
825;;; Programming 832;;; Programming
826 833