From mboxrd@z Thu Jan 1 00:00:00 1970 From: James TD Smith Subject: Re: Displaying images inline Date: Sat, 23 Aug 2008 00:00:31 +0100 Message-ID: <20080822230031.GA59512@yog-sothoth.mohorovi.cc> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWfcU-0003Tk-DU for emacs-orgmode@gnu.org; Fri, 22 Aug 2008 19:00:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWfcT-0003TI-0Q for emacs-orgmode@gnu.org; Fri, 22 Aug 2008 19:00:38 -0400 Received: from [199.232.76.173] (port=58129 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWfcS-0003TF-QD for emacs-orgmode@gnu.org; Fri, 22 Aug 2008 19:00:36 -0400 Received: from 81-86-40-42.dsl.pipex.com ([81.86.40.42]:50569 helo=yog-sothoth.mohorovi.cc) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KWfcR-0003T0-NE for emacs-orgmode@gnu.org; Fri, 22 Aug 2008 19:00:36 -0400 Received: from yog-sothoth.mohorovi.cc (localhost [127.0.0.1]) by yog-sothoth.mohorovi.cc (8.14.2/8.14.2) with ESMTP id m7MN0WCE059564 for ; Sat, 23 Aug 2008 00:00:32 +0100 (BST) (envelope-from ahktenzero@mohorovi.cc) Received: (from ahktenzero@localhost) by yog-sothoth.mohorovi.cc (8.14.2/8.14.2/Submit) id m7MN0VRn059563 for emacs-orgmode@gnu.org; Sat, 23 Aug 2008 00:00:31 +0100 (BST) (envelope-from ahktenzero@mohorovi.cc) Content-Disposition: inline In-Reply-To: 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@gnu.org 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. -- |---|