[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto-revert-mode

From: Oleksandr Gavenko
Subject: Re: auto-revert-mode
Date: Tue, 14 Sep 2010 12:17:39 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20100825 Thunderbird/3.1.3

On 14.09.2010 11:24, Gary wrote:
I know I can use M-x auto-revert-mode to turn this on manually on a per
buffer basis, but is there any way to do so for all files matching the
pattern ".*\.foo" (for example)? I tried adding it to the mode hook
related to "foo" files but it didn't work for some reason.

 (lambda nil
   (when (equal (file-name-extension (buffer-file-name)) "log")
       (auto-revert-mode 1) ;; or (auto-revert-tail-mode 1) !!

I don't know more efficient way to do this.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]