Sometimes I launch dired, then rename a file, or add a new file, and dired doesn't see the changes until I relaunch Emacs. Is there a way to configure dired to refresh itself more quickly, either through polling or file system hooks?
Add a hook.
;; Auto-refresh dired on file change
(add-hook 'dired-mode-hook 'auto-revert-mode)
3 years ago