Emacs org-display-inline-images

emacs, org-mode

Solution

This works for me:

(defun do-org-show-all-inline-images ()
  (interactive)
  (org-display-inline-images t t))
(global-set-key (kbd "C-c C-x C v")
                'do-org-show-all-inline-images)

And here's how I found how to do it:

- M-x apropos RET `org.*image.*`.

- F1 f `org-display-inline-images`.

- make a test.org with a link to picture.

- M-: `(org-display-inline-images t t)`.

- wrap it in a `defun`/`global-set-key`.

Problem

How can I display inline images in emacs org mode? I have `[[file:~/myimage.png]]`, which, when clicked, opens the image in a new buffer. But how to do it in the same buffer? Note: C c C x C v is undefined, so I couldn't activate the inline images, but how do I solve this problem?

Original source