Created
January 17, 2011 10:15
-
-
Save radhikalism/782689 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
(define-minor-mode teleprompt2-mode | |
"Teleprompt mode" | |
nil | |
" Teleprompt" | |
`((,(kbd "<prior>") . (lambda () (interactive) (scroll-down 1))) | |
(,(kbd "<next>") . (lambda () (interactive) (scroll-up 1))))) | |
(defun teleprompt-roll () | |
(interactive) | |
(recenter) | |
(dotimes-with-progress-reporter | |
(i (count-screen-lines (point) (buffer-end 1))) | |
"Rolling, rolling, rolling..." | |
(scroll-up 1) | |
(sit-for 2.2))) | |
(provide 'teleprompt2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment