From c42a815ac42862249d87228ec242505fe9504c1d Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 28 Jan 2012 23:18:11 +0900 Subject: [PATCH] use post-command-hook for auto revert --- emacs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 6833e4b..dbd3c27 100644 --- a/emacs.el +++ b/emacs.el @@ -1879,7 +1879,7 @@ this is test, does not rename files" (not (verify-visited-file-modtime (current-buffer)))) (revert-buffer t t)))) -(add-hook 'window-configuration-change-hook +(add-hook 'post-command-hook ; 'window-configuration-change-hook 'my-revert-buffer-if-needed) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;