From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: inline images Date: Wed, 01 Oct 2008 17:33:39 +0200 Message-ID: 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 1Kl3hQ-00072n-E5 for emacs-orgmode@gnu.org; Wed, 01 Oct 2008 11:33:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl3hL-0006ym-Sa for emacs-orgmode@gnu.org; Wed, 01 Oct 2008 11:33:11 -0400 Received: from [199.232.76.173] (port=38958 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl3hL-0006yj-L7 for emacs-orgmode@gnu.org; Wed, 01 Oct 2008 11:33:07 -0400 Received: from ug-out-1314.google.com ([66.249.92.171]:54908) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kl3hL-000217-BA for emacs-orgmode@gnu.org; Wed, 01 Oct 2008 11:33:07 -0400 Received: by ug-out-1314.google.com with SMTP id z36so1096044uge.17 for ; Wed, 01 Oct 2008 08:33:04 -0700 (PDT) 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: org-mode I sometimes turn on inline images in my org file using code posted here. ,---- | ;; inline images in org files | ;;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) `---- It might be an idea to make it a setting as to whether the target image is inlined too. e.g I have a lot of links of this type: [[file:../images/gud.png][file:../images/guds.png]] And would like to only see the small preview png file in this case and not the large one. Has anyone implemented something like this or has the code above already been merged into org? regards, r.