Need a unique gift idea?
A Pastebin account makes a great Christmas gift


a guest Oct 20th, 2017 73 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. (defun test-mode (command output-file)
  2.   "Test this code in a buffer."
  3.   (setq old-buffer (current-buffer))
  4.   (interactive
  5.    (list (read-shell-command "shell command:" nil nil)
  6.          (read-file-name "file name:")))
  7.   (start-process-shell-command command "test-mode-process" command)
  8.   (find-file-other-window output-file)
  9.   (revert-buffer t t t)
  10.   (setq buffer-read-only t)
  11.   (other-window 1))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand