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)
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
1 year ago