diff -r 789d7ac3d34f -r f7892d56919c .emacs-my --- a/.emacs-my Tue Oct 25 03:58:25 2011 +0300 +++ b/.emacs-my Tue Oct 25 21:27:03 2011 +0300 @@ -877,7 +877,7 @@ (message "logging, logs") (defun my-auto-revert-tail-mode-hook () - (when (string-match "/var/log/.*\\.log\\'" + (when (string-match "/var/log/" (buffer-file-name (current-buffer))) (auto-revert-tail-mode 1) ))