Created
December 19, 2012 02:20
-
-
Save sharapeco/4333844 to your computer and use it in GitHub Desktop.
[xyzzy] いま開いているバッファを diff する。ウィンドウを二つ開いておくこと。
This file contains 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 diff-selected-buffers () | |
(interactive) | |
(let (file1 file2) | |
(setq file1 (get-buffer-file-name (selected-buffer))) | |
(other-window) | |
(setq file2 (get-buffer-file-name (selected-buffer))) | |
(diff file1 file2))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment