Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .