Skip to content

Instantly share code, notes, and snippets.

@legumbre
Created Jan 5, 2012
Embed
What would you like to do?
(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