Switch any file with '/var/log/' part in path to 'auto-revert-tail-mode'.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 25 Oct 2011 21:27:03 +0300
changeset 758 f7892d56919c
parent 757 789d7ac3d34f
child 759 41ed90c3b3a3
Switch any file with '/var/log/' part in path to 'auto-revert-tail-mode'.
.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)
     ))