Skip to main content
added 87 characters in body
Source Link
Drew
  • 79.1k
  • 10
  • 123
  • 257

As Dan pointed out, by default you need to manually revert dired buffers (e.g., by typing g) in order to update the directory listing view.

If you want this to happen automatically, then you can turn on auto-revert mode. For example,

(add-hook 'dired-mode-hook #'(turn-on-auto-revert-mode))

But see the Emacs manual, node hereAuto Reverting Dired for some limitations of this.

You might also want to combine that with something like this:

(customize-set-value 'auto-revert-verbose nil
             "Prevent any auto-revert messages from
             obscuring the minibuffer at crucial times!")
(customize-set-value
  'auto-revert-verbose
  nil
  "Prevent any auto-revert messages from obscuring the minibuffer at crucial times!")

As Dan pointed out, by default you need to manually revert dired buffers (e.g., by typing g) in order to update the directory listing view.

If you want this to happen automatically, then you can turn on auto-revert mode. For example,

(add-hook 'dired-mode-hook #'(turn-on-auto-revert-mode))

But see here for some limitations of this.

You might also want to combine that with

(customize-set-value 'auto-revert-verbose nil
             "Prevent any auto-revert messages from
             obscuring the minibuffer at crucial times!")

As Dan pointed out, by default you need to manually revert dired buffers (e.g., by typing g) in order to update the directory listing view.

If you want this to happen automatically, then you can turn on auto-revert mode. For example,

(add-hook 'dired-mode-hook #'(turn-on-auto-revert-mode))

But see the Emacs manual, node Auto Reverting Dired for some limitations of this.

You might also want to combine that with something like this:

(customize-set-value
  'auto-revert-verbose
  nil
  "Prevent any auto-revert messages from obscuring the minibuffer at crucial times!")
Source Link
deprecated
  • 2.9k
  • 17
  • 15

As Dan pointed out, by default you need to manually revert dired buffers (e.g., by typing g) in order to update the directory listing view.

If you want this to happen automatically, then you can turn on auto-revert mode. For example,

(add-hook 'dired-mode-hook #'(turn-on-auto-revert-mode))

But see here for some limitations of this.

You might also want to combine that with

(customize-set-value 'auto-revert-verbose nil
             "Prevent any auto-revert messages from
             obscuring the minibuffer at crucial times!")