summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-external.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/init-external.el b/lisp/init-external.el
index 2b54173..357ec9c 100644
--- a/lisp/init-external.el
+++ b/lisp/init-external.el
@@ -74,7 +74,13 @@ is non-nil, switch to the buffer."
(select-window (get-buffer-window "*Diff*"))
(view-mode 1))
+(defun km/revert-buffer-and-view ()
+ (interactive)
+ (revert-buffer)
+ (view-mode 1))
+
(define-key external-map "d" 'diff)
(define-key external-map "e" 'ediff)
+(define-key diff-mode-map (kbd "C-c C-g") 'km/revert-buffer-and-view)
(provide 'init-external)