From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Displaying images inline Date: Sat, 23 Aug 2008 04:46:31 +0200 Message-ID: <48AF7A07.2080308@gmx.de> References: <20080822230031.GA59512@yog-sothoth.mohorovi.cc> Reply-To: sebastian_rose@gmx.de Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWj8f-0005cG-67 for emacs-orgmode@gnu.org; Fri, 22 Aug 2008 22:46:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWj8d-0005c0-Hw for emacs-orgmode@gnu.org; Fri, 22 Aug 2008 22:46:04 -0400 Received: from [199.232.76.173] (port=42940 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWj8d-0005bs-Av for emacs-orgmode@gnu.org; Fri, 22 Aug 2008 22:46:03 -0400 Received: from mail.gmx.net ([213.165.64.20]:53126) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KWj8c-0005IF-UO for emacs-orgmode@gnu.org; Fri, 22 Aug 2008 22:46:03 -0400 In-Reply-To: <20080822230031.GA59512@yog-sothoth.mohorovi.cc> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "[emacs-orgmode]" 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. > > -- > |---| > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >