[Top][All Lists]

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

Re: viewing log files (mainly _^H)

From: Stefan Monnier
Subject: Re: viewing log files (mainly _^H)
Date: Thu, 04 Dec 2003 19:17:20 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> Some shell log files I have to view contain underlined output
> (_^HA etc).  I suppose there should be a viewing mode for such output
> (in man, shell etc; but is it available as a separate function?).

You said you wanted a font-lock thingy ?
How about...

    (defvar foo-font-lock-keywords
      '(("\\(_\\)\\(.\\)" (1 '(face nil invisible t)) (2 'underline))
        ("\\(\\(.\\)\\)\\(\\2\\)" (1 '(face nil invisible t)) (3 'bold))))
    (define-derived-mode foo-mode fundamental-mode "Foo" "Foo viewing mode"
      (set (make-local-variable 'font-lock-defaults)

-- Stefan

reply via email to

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