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

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

Re: [h-e-w] How do I get emacs to stop ignoring .log files in tab-comple


From: Ken Goldman
Subject: Re: [h-e-w] How do I get emacs to stop ignoring .log files in tab-completion?
Date: Wed, 1 Dec 2004 14:15:19 -0500

> Subject pretty much says it, but when I want to read a log file,
> emacs won't tab-complete the name in the minibuffer.  What's worse, I
> use log4j for a lot of things ...

(setq completion-ignored-extensions (delete ".log" 
completion-ignored-extensions))

Bonus:  My log4j mode

(defface font-lock-fatal-face
  '((((type tty) (class color)) (:foreground "red" ))
    (t ))
  "Font Lock mode face used to highlight fatal errors."
  :group 'font-lock-highlighting-faces)

(define-generic-mode 'log4j-mode
  '("#")
  '("WARN" "INFO" "DEBUG")
  '(
    ("ERROR" . 'paren-face-mismatch)
    ("INFO" . 'font-lock-constant-face)
    ("WARN" . 'font-lock-type-face)
    ("FATAL" . 'font-lock-fatal-face)
)
  '(".log4j\\'")
  nil
  "Major mode for editing log4j logs")



-- 
Ken Goldman   address@hidden   914-784-7646




reply via email to

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