emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Displaying images inline


From: Sebastian Rose
Subject: Re: [Orgmode] Displaying images inline
Date: Sat, 23 Aug 2008 04:46:31 +0200
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

WOW!!

Thanks for this one!!!

:)

James TD Smith wrote:
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:

;;iimage
(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>-|


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode






reply via email to

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