Skip to content

Instantly share code, notes, and snippets.

@g000001
Created March 16, 2013 04:49
Show Gist options
  • Save g000001/5175052 to your computer and use it in GitHub Desktop.
Save g000001/5175052 to your computer and use it in GitHub Desktop.
(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