Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There's this emacs minor-mode called "auto-revert-mode" which automatically reverts the file buffer every 5 seconds.

In my .emacs file I just have the line (auto-revert-mode 1) and nothing else, but whenever I start an emacs session I still have to turn it on manually.

What's going on here? How come I can't turn auto-revert-mode at startup?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

From the function's documentation:

This is a minor mode that affects only the current buffer.
Use `global-auto-revert-mode' to automatically revert all buffers.
Use `auto-revert-tail-mode' if you know that the file will only grow
without being changed in the part that is already in the buffer.

So you should use global-auto-revert-mode for your purpose.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.