summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/km-diff.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/km-diff.el b/lisp/km-diff.el
index 371d1c9..05a8d0b 100644
--- a/lisp/km-diff.el
+++ b/lisp/km-diff.el
@@ -24,6 +24,15 @@
(require 'ediff)
;;;###autoload
+(defun km/diff-lock-buffer ()
+ "Rename current diff buffer to include new file name."
+ (interactive)
+ (rename-buffer
+ (format "*Diff: %s*"
+ (abbreviate-file-name
+ (substring-no-properties (diff-find-file-name))))))
+
+;;;###autoload
(defun km/ediff-with-other-window ()
"Run `ediff' on current window's file and other window's file."
(interactive)