瀏覽代碼

use post-command-hook for auto revert

pull/1/head
10sr 12 年之前
父節點
當前提交
c42a815ac4
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      emacs.el

+ 1
- 1
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)

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


Loading…
取消
儲存