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:

Contra Scott Alexander On Apologies

I really need a short word for "complicatedly in favor of"

via Thing of Things September 12, 2024

Don't Help Kids With Contra Dancing If They Don't Need Help

If you're a kid like me, most kids have probably never heard of contra dancing before. You're probably wondering: contra dance -- what's that? Contra dancing is in some ways similar to square dancing. It's a group dance with a caller and…

via Lily Wise's Blog Posts September 9, 2024

Two 19th-century missionary memoirs in China

Life for an American family in 1860s China The post Two 19th-century missionary memoirs in China appeared first on Otherwise.

via Otherwise August 24, 2024

more     (via openring)