Skip to content

Instantly share code, notes, and snippets.

@sharapeco
Created December 19, 2012 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharapeco/4333844 to your computer and use it in GitHub Desktop.
Save sharapeco/4333844 to your computer and use it in GitHub Desktop.
[xyzzy] いま開いているバッファを diff する。ウィンドウを二つ開いておくこと。
(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