From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: View log files with emacs Date: Mon, 23 Feb 2015 14:17:06 -0800 Message-ID: References: <871tloczw8.fsf@eknet.org> <87sie4z7p0.fsf@gmail.com> <87a9049twi.fsf@dod.no> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1424729862 26919 80.91.229.3 (23 Feb 2015 22:17:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2015 22:17:42 +0000 (UTC) To: Steinar Bang , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 23 23:17:41 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YQ1Jt-0005BZ-Bq for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Feb 2015 23:17:41 +0100 Original-Received: from localhost ([::1]:45674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQ1Js-00050L-OY for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Feb 2015 17:17:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQ1Jg-000502-JN for help-gnu-emacs@gnu.org; Mon, 23 Feb 2015 17:17:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQ1Jf-0004ni-Ie for help-gnu-emacs@gnu.org; Mon, 23 Feb 2015 17:17:28 -0500 Original-Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:42602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQ1Jf-0004nT-Cw for help-gnu-emacs@gnu.org; Mon, 23 Feb 2015 17:17:27 -0500 Original-Received: by mail-oi0-f46.google.com with SMTP id x69so16169120oia.5 for ; Mon, 23 Feb 2015 14:17:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=AGFbEHnQYgTA0znrxLjgwNAFJKH+BF6GiEbrliMQdA4=; b=Y5cvAuqLQNC6CjHF+zB3FdmkzBrEzLUnFaUJwX0dJrb+8ay1Vw1iNWVQI0qG2CgMrG M2147/ShjHDFOQwp/961lei39YlwSs5y7koXP4SxAaxSShWd8zmvDVJ6zYpN49LrX1XW wBXR3YxxZzSyJWevcGzsomyFACKCcWD1jDLooN60pTOa0EUD96Yi8QrAWtZXnd/40NHR l0IVUVZC2JT76qTnZaIx1bARkldeIEI4SXC2606s8zdDtiH99Rqcj9I/hIeh9IoTIBUv RK/RMN665lbw+zAE0lpFitVBTdvlMLGoGT+Abjtz25oQPCa0JI6WQRWeEH1m8pQcgy7F 9IKw== X-Received: by 10.60.141.41 with SMTP id rl9mr9007901oeb.31.1424729846407; Mon, 23 Feb 2015 14:17:26 -0800 (PST) Original-Received: by 10.76.12.162 with HTTP; Mon, 23 Feb 2015 14:17:06 -0800 (PST) In-Reply-To: <87a9049twi.fsf@dod.no> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::22e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102857 Archived-At: Steinar Bang 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