From: James TD Smith <ahktenzero@mohorovi.cc>
To: emacs-orgmode@gnu.org
Subject: Re: Displaying images inline
Date: Sat, 23 Aug 2008 00:00:31 +0100 [thread overview]
Message-ID: <20080822230031.GA59512@yog-sothoth.mohorovi.cc> (raw)
In-Reply-To: <c7f7412a0808221452l15d9777bkc4e06ac6adc80617@mail.gmail.com>
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/ahktenzero@mohorovi.cc>-|
next prev parent reply other threads:[~2008-08-22 23:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-22 21:52 Displaying images inline Lindsay Todd
2008-08-22 23:00 ` James TD Smith [this message]
2008-08-23 2:46 ` Sebastian Rose
2008-08-23 23:55 ` Manish
2008-08-24 9:32 ` Chris Randle
2008-08-24 12:49 ` Manish
2008-08-24 18:07 ` Daniel Goldin
2008-08-24 13:21 ` Lindsay Todd
2008-08-24 15:54 ` Taru Karttunen
2008-08-24 17:30 ` James TD Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080822230031.GA59512@yog-sothoth.mohorovi.cc \
--to=ahktenzero@mohorovi.cc \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).