[Top][All Lists]

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

Re: [Orgmode] Displaying images inline

From: James TD Smith
Subject: Re: [Orgmode] Displaying images inline
Date: Sat, 23 Aug 2008 00:00:31 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On 2008-08-22 17:52:46(-0400), Lindsay Todd wrote:
> Is there a way to link to a file containing an image, and have the
> image display inline in org-mode?  I know that if the org file is
> exported to HTML, it can be done so that the HTML file displays the
> image inline -- but I'd kind of like to be able to see the linked
> images from the org file itself, much like I can do with a muse file.
> (Although if there were a file-wide property to control whether or not
> that happens, it would be nice -- I could see maybe wanting to never
> inline in some files.)

You can do this using iimage; add the following to your .emacs:

(require 'iimage)
(setq iimage-mode-image-search-path (expand-file-name "~/"))
;;Match org file: links
(add-to-list 'iimage-mode-image-regex-alist
             (cons (concat "\\[\\[file:\\(~?" iimage-mode-image-filename-regex
                           "\\)\\]")  1))
(define-key org-mode-map [(control c) ?i] 'iimage-mode)

You can then toggle inline display of images in an org buffer using C-c i.

|-<James TD Smith>-<email/address@hidden>-|

reply via email to

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