summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-06-07 22:44:59 -0400
committerKyle Meyer <kyle@kyleam.com>2014-06-07 22:44:59 -0400
commitf440d4c6ba3145ee260a412ba359d91a8f9132a3 (patch)
tree395808c97e0b36bba7c6b3a820118a246e846a89 /lisp
parentd973a21b0cf2c42ae63212d7d8fcd2d0c1e09721 (diff)
downloademacs.d-f440d4c6ba3145ee260a412ba359d91a8f9132a3.tar.gz
Add revert-buffer binding to diff-mode-map
Diffstat (limited to 'lisp')
-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)