Emacs Auto-Revert Mode

October 1st, 2012
emacs, tech
When a file changes on disk outside of my text editor it's nearly always because I:
  • modified it in another editor, or
  • used git to switch branches.
In both of these cases I would like my editor to notice the change and start showing the new version unless I have unsaved changes. I can make emacs always do this by putting:
   (global-auto-revert-mode 1)
in my ~/.emacs. I've not found a situation where this makes emacs do something other than what I would want it to do.

Comment via: google plus, facebook, r/emacs

Recent posts on blogs I like:

Effective Altruism: Importance, Tractability, Neglectedness

One of the most distinctive features of effective altruism is the use of the importance, tractability, and neglectedness framework for evaluating charities.

via Thing of Things April 23, 2025

Impact, agency, and taste

understand + work backwards from the root goal • don’t rely too much on permission or encouragement • make success inevitable • find your angle • think real hard • reflect on your thinking

via benkuhn.net April 19, 2025

Which Came First, the Chicken or the Egg?

When I thought about this question it was really hard to figure out because the way it's phrased it's essentially either a chicken just pops into existence, or an egg just pops into existence, without any parent animals involved. I thought about t…

via Lily Wise's Blog Posts April 13, 2025

more     (via openring)