chiark / gitweb /
el/dot-emacs.el, dot/emacs: Add keybinding to update VC modelines.
[profile] / el / dot-emacs.el
index 48d17af04d61377c2ff9f5661d53defb453cc92d..fbc389936fe0c5f37b3dbbf61655054e87d6780a 100644 (file)
@@ -963,6 +963,12 @@ (defadvice find-file (after mdw-autorevert activate)
 (defadvice write-file (after mdw-autorevert activate)
   (mdw-check-autorevert))
 
+(defun mdw-auto-revert ()
+  "Recheck all of the autorevertable buffers, and update VC modelines."
+  (interactive)
+  (let ((auto-revert-check-vc-info t))
+    (auto-revert-buffers)))
+
 ;;;--------------------------------------------------------------------------
 ;;; Dired hacking.