Created
March 16, 2013 04:49
-
-
Save g000001/5175052 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
(defcommand pa (&optional (after 60)) ((:number "pop up after:")) | |
"pop up after n sec" | |
(let ((w (current-window))) | |
(bt:make-thread | |
(lambda () | |
(sleep after) | |
(alarm-foo) ;; alarm (run-shell-command "/usr/bin/mpg123 chick.mp3") etc | |
(pull-window w))))) | |
(define-key *root-map* (kbd "C-x") "pa") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment