From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Wow -- adding images to an org file Date: Fri, 7 May 2010 09:55:41 +0200 Message-ID: <4648D225-BC59-4DB3-8D5B-DD50CD0E05C5@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OAIPV-0006kP-Og for emacs-orgmode@gnu.org; Fri, 07 May 2010 03:55:49 -0400 Received: from [140.186.70.92] (port=50794 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAIPU-0006gg-5M for emacs-orgmode@gnu.org; Fri, 07 May 2010 03:55:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OAIPR-0008P9-Qg for emacs-orgmode@gnu.org; Fri, 07 May 2010 03:55:48 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:36081) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OAIPR-0008Ow-H0 for emacs-orgmode@gnu.org; Fri, 07 May 2010 03:55:45 -0400 Received: by wyb40 with SMTP id 40so264282wyb.0 for ; Fri, 07 May 2010 00:55:44 -0700 (PDT) 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: Chris Thompson Cc: emacs-orgmode@gnu.org On May 7, 2010, at 4:16 AM, Chris Thompson wrote: > Nathan Neff gmail.com> writes: > >> >> I just saw Andreas's screenshot here: >> >> http://orgmode.org/worg/org-screenshots.php >> >> If you zoom in to his screenshot, >> http://orgmode.org/img/screenshots/org_andreas.jpg >> >> You can see how he adds images to his org files. >> All that I had to do was put this into my emacs init file: >> >> (defun org-dblock-write:image (params) >> (let ((file (plist-get params :file))) >> (clear-image-cache file) >> (insert-image (create-image file) ))) >> >> Then, put this in an org-file: >> >> #+BEGIN: image :file "~/Documents/personal/foo.png" >> #+END >> >> And run C-c C-c (or is it C-c C-x C-u)? >> >> Anyway, Cool stuff! >> >> --Nate >> > > > Another way to have images in org-mode documents is to use the > "iimage" > minor mode, which handles inline images: > http://www.netlaputa.ne.jp/~kose/Emacs/iimage.html > > For additional documentation: > http://orgmode.org/worg/org-configs/org-config-examples.php#sec-2_2 At that place, I find this code: (add-to-list 'iimage-mode-image-regex-alist (cons (concat "\\[\\[file:\ \(~?" iimage-mode-image-filename-regex "\\)\\]") 1)) (defun org-toggle-iimage-in-org () "display images in your org file" (interactive) (if (face-underline-p 'org-link) (set-face- underline-p 'org-link nil) (set-face-underline-p 'org-link t)) (iimage- mode)) I guess I could actually add the above code to org.el, so that the only thing to do for a user would be to turn on iimage-mode. What is the purpose of toggling the underline property of the link face? - Carsten