Created
May 18, 2020 07:46
-
-
Save nfedyashev/10f2bfdf40b45a54a40d091e8a6b3094 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun show-msg-after-timer () | |
"Show a message after timer expires. Based on run-at-time and can understand time like it can." | |
(interactive) | |
(let* ((msg-to-show (read-string "Enter msg to show: ")) | |
(time-duration (read-string "Time? "))) | |
(message time-duration) | |
(run-at-time time-duration nil #'message-box msg-to-show))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment