Last active
August 29, 2015 13:56
-
-
Save ecounysis/9010859 to your computer and use it in GitHub Desktop.
pair-program virtual emacs
This file contains hidden or 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 pair-program (revert-interval save-interval) | |
(interactive "nRevert Interval: \nnSave Interval: ") | |
(setq auto-revert-interval revert-interval) | |
(auto-revert-mode) | |
(run-at-time "1 sec" save-interval 'save-buffer)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment