Today I installed graphviz mode for Emacs. One of its features is that it will show you the rendered image in a buffer. When I tried it out, the image was opened as text. This is of course not what I wanted :).

The Emacs user guide says here that to enable support on Windows you should check “Other useful ports”.

This post was particularly helpful because it explained that the contents of the ‘image-library-alist’ variable tell us everything we need to know. When you view its contents, it tells you which DLLs that it is looking for in order to view each particular format of image file. Just get the Windows version of those DLLs and throw them in the Emacs bin directory and restart Emacs for image support to be enabled.

I got zlib1.dll, jpeg62.dll, and giflib4.dll from GetGnuWin32 and libpng14-14.dll from Gnome.

Share me 🙋!

Tweet





WhatsApp

