Skip to content

Instantly share code, notes, and snippets.

@10sr
Created November 3, 2011 12:24
Show Gist options
  • Select an option

  • Save 10sr/1336374 to your computer and use it in GitHub Desktop.

Select an option

Save 10sr/1336374 to your computer and use it in GitHub Desktop.
dired-diff using mark for selecting old file
(defun my-dired-diff ()
""
(interactive)
(let ((files (dired-get-marked-files nil nil nil t)))
(if (eq (car files)
t)
(diff (cadr files) (dired-get-filename))
(message "One files must be marked!"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment