emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: image.el doesn't associate image-mode with .JPG files


From: Juanma Barranquero
Subject: Re: image.el doesn't associate image-mode with .JPG files
Date: Tue, 12 Dec 2006 14:26:15 +0100

On 12/12/06, Miles Bader <address@hidden> wrote:

Thought that's probably a reasoanble change, but it doesn't suffice in
this case -- image-type-from-file-name is not called except when
specifically dealing with an image, and Emacs never gets that far unless
auto-mode-alist tells it to...

Ah. I wasn't aware, because on Windows machines, "emacs TEST.JPEG"
opens it in image mode.

If .JPG/.JPEG is frequent, perhaps we should add it to
`auto-mode-alist', then. Or do this:

(push '("^\xFF\xD8\xFF\xE0\x00\x10JFIF" . image-mode)
      magic-mode-alist)

                   /L/e/k/t/u




reply via email to

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