Enable log4-hi-mode and auto-revert-tail-mode for ~/.xsession-errors.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 14 Oct 2014 23:47:08 +0300
changeset 1164 ca644074aac4
parent 1159 865c275e0a7d
child 1165 51cebd6ff0ac
Enable log4-hi-mode and auto-revert-tail-mode for ~/.xsession-errors.
.emacs-my
--- a/.emacs-my	Sun Oct 05 13:48:08 2014 +0300
+++ b/.emacs-my	Tue Oct 14 23:47:08 2014 +0300
@@ -1130,7 +1130,7 @@
 (message "logging, logs")
 
 (defun my-auto-revert-tail-mode-hook ()
-  (when (string-match "/logs?/\\|\\.\\(?:log\\|out\\)\\'"
+  (when (string-match "/logs?/\\|\\.\\(?:log\\|out\\)\\'\\|/.xsession-errors\\'"
                       (buffer-file-name (current-buffer)))
     (auto-revert-tail-mode 1)
     (log4-hi-mode 1)