help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: View log files with emacs


From: John Mastro
Subject: Re: View log files with emacs
Date: Mon, 23 Feb 2015 14:17:06 -0800

Steinar Bang <sb@dod.no> wrote:

> I got it from MELPA and put
>  (require 'syslog-mode)
> in the .emacs file.
>
> But it doesn't open the log files in /var/log automatically, they still
> open as Fundamental, and I have to 'M-x syslog-mode RET' to get the mode
> running.

I haven't used syslog-mode personally but, as a general matter,
something along these lines in your init file should do the trick:

(add-to-list 'auto-mode-alist '("\\`/var/log/" . syslog-mode))

-- 
john



reply via email to

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