瀏覽代碼

more better auto revert

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

+ 2
- 2
.emacs.el 查看文件

@@ -1886,8 +1886,8 @@ this is test, does not rename files"
(interactive)
(unless (eq my-revert-buffer-if-needed-last-buffer (current-buffer))
(setq my-revert-buffer-if-needed-last-buffer (current-buffer))
(when (or (not (verify-visited-file-modtime (current-buffer)))
buffer-read-only)
(when (or (eq major-mode 'dired-mode)
(not (verify-visited-file-modtime (current-buffer))))
(revert-buffer t t))))

(add-hook 'window-configuration-change-hook


Loading…
取消
儲存