Sfoglia il codice sorgente

use post-command-hook for auto revert

pull/1/head
10sr 12 anni fa
parent
commit
c42a815ac4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      emacs.el

+ 1
- 1
emacs.el Vedi 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)

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


Caricamento…
Annulla
Salva