Skip to content

Instantly share code, notes, and snippets.

@ecounysis
Last active August 29, 2015 13:56
Show Gist options
  • Save ecounysis/9010859 to your computer and use it in GitHub Desktop.
Save ecounysis/9010859 to your computer and use it in GitHub Desktop.
pair-program virtual emacs
(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