From: Thamer Mahmoud <thamer.mahmoud@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: auto-revert-mode
Date: Tue, 14 Sep 2010 21:32:51 +0300 [thread overview]
Message-ID: <87pqwgrx9o.fsf@zemblan.newkuwait.org> (raw)
In-Reply-To: i6nej5$hae$1@dough.gmane.org
Oleksandr Gavenko <gavenko@bifit.com.ua> writes:
>
> (add-to-list
> 'find-file-hook
> (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.
>
Here is another solution:
(add-to-list 'auto-mode-alist
'("\\.foo\\'" (lambda () (auto-revert-mode 1)) t))
--
Thamer
next prev parent reply other threads:[~2010-09-14 18:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-14 8:24 auto-revert-mode Gary
2010-09-14 9:06 ` auto-revert-mode Deniz Dogan
2010-09-14 9:35 ` auto-revert-mode Gary
2010-09-14 9:17 ` auto-revert-mode Oleksandr Gavenko
2010-09-14 9:49 ` auto-revert-mode Gary
2010-09-14 18:32 ` Thamer Mahmoud [this message]
2010-09-14 19:33 ` auto-revert-mode Oleksandr Gavenko
2010-09-14 22:54 ` auto-revert-mode Thamer Mahmoud
2010-09-15 5:00 ` auto-revert-mode Deniz Dogan
[not found] ` <mailman.3.1284489201.20547.help-gnu-emacs@gnu.org>
2010-09-14 19:23 ` auto-revert-mode Andreas Politz
2010-09-15 8:31 ` auto-revert-mode Stefan Monnier
2010-09-15 10:29 ` auto-revert-mode Andreas Politz
2010-09-15 10:31 ` auto-revert-mode Andreas Politz
[not found] ` <mailman.5.1284455865.12957.help-gnu-emacs@gnu.org>
2010-09-14 14:39 ` auto-revert-mode Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pqwgrx9o.fsf@zemblan.newkuwait.org \
--to=thamer.mahmoud@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.