开发者

Emacs: Is it possible to browse images in a directory? On Windows?

I read about auto-image-file-mode , which I think displays image files as images within emacs. I'd like to use it. This doc says it has been replaced by image-开发者_如何学Gomode.

I can't get either to work.

Any help?


I got it to work, by downloading the packages for PNG and JPG from GnuWin32, and putting the required DLLs into the \emacs\bin directory:

From LibPng: 
  libpng-config
  libpng12-config
  libpng12.dll
  libpng3.dll
  zlib1.dll

From jpeg: 
  jpeg62.dll

Now it works. Here's a screen-shot of editing a SO question, being displayed in emacs.

Emacs: Is it possible to browse images in a directory? On Windows?

You could also drop those DLLs on the OS's PATH, before running runemacs.exe. That works, too.


It can depend on what version and where you got your windows emacs binary. If you have the windows emacs23 binary from the gnu ftp site then I don't think it is compiled with image support (at least this was the case several months ago). I use the patched windows emacs23 binary from EmacsW32 which does have image support. I also have (auto-image-file-mode) in my .emacs file.


Using Emacs 23.1 (on Fedora 12) when I visit a *.png file, it shows up as an image in the Emacs buffer. Similarly for *.gif and *.pdf files. The mode was advertised as Image[png], fwiw.


Once you've gotten Emacs to show images, you can also see thumbnail images in these contexts, in addition to Dired (using image-dired):

  • In buffer *Completions* during file-name completion or completion of (file) bookmarks. You need Icicles for this. Showing the thumbnails is optional -- you can toggle it from the minibuffer using C-x t (cycles among: showing only images, images + file names, and only file names).

  • In buffer *Bookmark List* (from C-x r l), when you hit C-h RET to see info about the current line's bookmark. You need Bookmark+ for this.

bookmarksbookmark

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜