unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* auto-revert in VCS
@ 2010-02-16  9:57 Andrea Crotti
  2010-02-23  4:29 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea Crotti @ 2010-02-16  9:57 UTC (permalink / raw)
  To: help-gnu-emacs

I would like to have auto-revert activated when I work with branches.
For example in git projects every time I change branch I have to revert
buffer manually to start working on the new branch.
So I wrote this in my conf:

--8<---------------cut here---------------start------------->8---
(require 'autorevert)
(setq auto-revert-check-vc-info t)
(setq auto-revert-interval 3) ;; this could be cpu consuming
(setq auto-revert-verbose t)

(setq global-auto-revert-mode t)
--8<---------------cut here---------------end--------------->8---

The problem is that emacs was sucking all my cpu power and that's not
nice...
I only need to enable auto-revert for files under revision control, and
only on files which I'm visiting in some buffers (and the buffer is
active), is that possible somehow?





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-23  4:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-16  9:57 auto-revert in VCS Andrea Crotti
2010-02-23  4:29 ` Kevin Rodgers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).