I had to patch together some various emacs from around the web to get inline images with iimage.el working in emacs exactly the way I wanted. Here’s some info:
- Load and displays images in org files on initial load
- Provides a function that allows you to toggle images on and off
- Specify images you would like to load with the [[file://file.png]] org link type
Here’s the code, you can add it anywhere in your .emacs
;; -- Display images in org mode
;; enable image mode first
(iimage-mode)
;; add the org file link format to the iimage mode regex
(add-to-list 'iimage-mode-image-regex-alist
(cons (concat "\\[\\[file:\\(~?" iimage-mode-image-filename-regex "\\)\\]") 1))
;; add a hook so we can display images on load
(add-hook 'org-mode-hook '(lambda () (org-turn-on-iimage-in-org)))
;; function to setup images for display on load
(defun org-turn-on-iimage-in-org ()
"display images in your org file"
(interactive)
(turn-on-iimage-mode)
(set-face-underline-p 'org-link nil))
;; function to toggle images in a org bugger
(defun org-toggle-iimage-in-org ()
"display images in your org file"
(interactive)
(if (face-underline-p 'org-link)
(set-face-underline-p 'org-link nil)
(set-face-underline-p 'org-link t))
(call-interactively 'iimage-mode))
I have this function bound to C-l with a call like this:
(define-key org-mode-map (kbd "C-S-a") 'org-archive-subtree)

Comments
You may want to have a look at `org-display-inline-images’
Cool, thanks for the comment, I’ll definitely look into it. Initially it does not seem to work for me. But I’ll see what it does and if I can use it to improve my setup.
[...] MapReduce with multiprocessing in python Google’s MapReduce in 98 Lines of Python Displaying Inline Images in Emacs org-mode LFS – Lightning Fast Shop – [...]
Thanks a lot. This is exactly what I was looking for.