Created
November 3, 2011 12:24
-
-
Save 10sr/1336374 to your computer and use it in GitHub Desktop.
dired-diff using mark for selecting old file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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