Questions tagged [auto-revert-mode]
23 questions
12
votes
1 answer
How to stop dired printing "Reverting buffer ..."
After setting dired-auto-revert-buffer to t, even when I'm working on a buffer of file that may produce some results, the message keep printing if there is a dired buffer behind current buffer. This is really annoying. How can I completely disable…

Saddle Point
- 481
- 7
- 23
11
votes
3 answers
Making an image (ie. image-mode) auto reload changes from disk
I have an image generated by plantuml which I open in an Image mode buffer. I want to use Auto-Revert mode so it auto-refreshes, but it doesn't seem to work on Image mode buffers for some reason. Is there something I'm missing?

Mark
- 1,409
- 1
- 15
- 20
10
votes
3 answers
global-auto-revert-mode doesn't seem to work?
My init file includes
(setq global-auto-revert-mode t)
and I can confirm it's true with C-h v. But I still have to manually revert all my files with revert-buffer whenever I change git branches. I even get as far as trying to save and getting the…

djechlin
- 923
- 8
- 21
9
votes
2 answers
Can I set a particular file to automatically and silently accept changes?
That is, can I specify for a particular file that I don't want Emacs to notify me that the file has changed on disk and prompt me about whether I want to accept changes or not? I don't want to do this globally, just for files I know will frequently…

emacsomancer
- 1,011
- 1
- 9
- 16
9
votes
1 answer
Using Tramp for logs
I am trying to use Tramp with auto-revert-tail-mode to perform a tail of a remote log. Every time the log updates (which is often), the screen briefly jumps to the bottom of the file and then back to my current location in the file. Is there a way…

ChaimKut
- 187
- 8
8
votes
1 answer
automatically update buffers when focusing if file changed
When programming, I often switch from emacs to Xcode and viceversa.
When I switch to Xcode, it automatically updates the current file when I focus Xcode window, if it detects that there are some external changes.
In emacs I have to press C-x C-v…

Nisba
- 895
- 8
- 19
5
votes
1 answer
Auto-refresh files when using tramp
I am viewing remote log files using tramp mode in emacs. Is there a way to get tramp to auto-refresh these buffers when they change remotely? If this is not possible, is there a way to reload a buffer every time it is opened?
I have tried to set…

Beginner
- 2,661
- 3
- 17
- 25
5
votes
2 answers
Prevent Emacs from auto-reverting when the file size is over 10 GB
How can I prevent Emacs from auto-reverting only when the file size is over 10 GB? I know that there's the large-file-warning-threshold option but it doesn't work for auto-reverting.
I'm dealing with a file that I frequently overwrite…

stacko
- 1,577
- 1
- 11
- 18
4
votes
1 answer
Why is auto-revert-mode not working?
I have a file (my org-mode todo list) that I keep in sync across my machines, and I often leave it open in Emacs. Thus, I placed the following in my .dir-locals.el in the same folder as this file:
((org-mode . ((auto-revert-mode . 1))))
I know it…

Scott Weldon
- 2,695
- 1
- 17
- 31
4
votes
1 answer
How to enable auto-revert-mode for files under a certain directory
I have my org files kept synchronized via rsync with various devices. These buffers are usually open in any running emacs instances due to agenda and capture. I want emacs to re-read these files from disk when something arrives via rsync. I know…

mkaito
- 741
- 6
- 16
3
votes
4 answers
Only enable auto-revert-mode for the current buffer
I use auto-revert-mode and ideally I would like the auto-revert-interval to be very small, e.g. 0.5 seconds or less. But I am concerned about performance problems when I have many buffers open, especially as I would like to use auto-revert-mode for…

Resigned June 2023
- 1,502
- 15
- 20
2
votes
0 answers
How to prevent `Reverting buffer ‘’` message showing up?
I have plenty of files opened in my emacs daemon. In the background there is a running process which make changes on the *.yaml files that are already opened in my emacs. I am using auto-revert-mode in order to automatically reverts the buffer when…

alper
- 1,238
- 11
- 30
2
votes
1 answer
Auto-reverting only renderable PDF buffers
I'm using pdf-view mode and the global auto-revert mode with LaTeX and
latexmk. This works fine, except that, a couple of times during the
compilation, the PDF is in a useless state and the PDF window shows raw
data. I was wondering whether it is…

Toothrot
- 3,204
- 1
- 12
- 30
2
votes
0 answers
Auto-revert for changed pdf buffers?
Specifically in the content of exporting org->latex->pdf when using pdftools to view the resulting pdf, how can I stop emacs from asking me if I want to revert the pdf buffer and instead just auto-revert without asking?
I tried:
(add-hook…

emacsomancer
- 1,011
- 1
- 9
- 16
2
votes
1 answer
dired not showing recently created files when emacs is run in daemon mode
When running emacs in daemon mode, a directory listing using dired does not seem to show the latest created files.
What could be the cause of this issue, and how can I fix it?

Chris Stryczynski
- 707
- 5
- 23