feat: ask before quickloading a session
This commit is contained in:
parent
c8070f11a4
commit
09504ef9fe
1 changed files with 11 additions and 6 deletions
|
@ -67,12 +67,17 @@
|
|||
;;; Commands
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/quickload-session ()
|
||||
"TODO"
|
||||
(interactive)
|
||||
(message "Restoring session...")
|
||||
(doom-load-session)
|
||||
(message "Session restored. Welcome back."))
|
||||
(defun doom/quickload-session (force)
|
||||
"Load the last session saved.
|
||||
If the FORCE \\[universal-argument] is provided
|
||||
then no confirmation is asked."
|
||||
(interactive "P")
|
||||
(if (or force
|
||||
(yes-or-no-p "This will wipe your current session, do you want to continue? "))
|
||||
(progn (message "Restoring session...")
|
||||
(doom-load-session)
|
||||
(message "Session restored. Welcome back."))
|
||||
(message "Session not restored.")))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/quicksave-session ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue