Browse Source

use post-command-hook for auto revert

pull/1/head
10sr 12 years ago
parent
commit
c42a815ac4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      emacs.el

+ 1
- 1
emacs.el View File

@@ -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)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


Loading…
Cancel
Save