How to enable `dired-auto-revert-buffer` only for Dired-buffers without inserted sub-pars?

Inclusion global-auto-revert-modeis a great way to develop / debug using another tool. Changes made to the file on disk are reflected back to the appropriate emacs buffer.

dired-auto-revert-buffermakes the same possible for processed buffers, but if towing buffers are reloaded, it becomes impossible to use recursive directories. They reboot too long.

How to enable dired-auto-revert-bufferfor buffers that did not run insert ( dired-maybe-insert-subdir), or, especially, recursive insert?

+4
source share
2 answers
. , - , , , dired-auto-revert-buffer ( t), non-nil , .

:

(setq dired-auto-revert-buffer  (lambda (_dir) (null (cdr dired-subdir-alist))))

, dired-auto-revert-buffer , "" Dired buffer. , , . C-x d , , .

+3

dired-auto-revert-buffer , ( ). non-nil, .

+1

Source: https://habr.com/ru/post/1568374/


All Articles