Skip to content

Instantly share code, notes, and snippets.

@legumbre
Created January 5, 2012 17:40
Show Gist options
  • Save legumbre/1566302 to your computer and use it in GitHub Desktop.
Save legumbre/1566302 to your computer and use it in GitHub Desktop.
(defun rrnic-diff (cmd1 cmd2)
(interactive
(list
(read-shell-command "Shell command (1): " nil nil)
(read-shell-command "Shell command (2): " nil nil)))
(let ((b1 (get-buffer-create "*1*")) (b2 (get-buffer-create "*2*")))
(shell-command cmd1 b1)
(shell-command cmd2 b2)
(ediff-buffers b1 b2)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment