emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] image active link face


From: Sebastien Vauban
Subject: Re: [O] image active link face
Date: Thu, 22 Sep 2011 10:11:21 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (windows-nt)

Hi Eric S Fraga,

Eric S Fraga wrote:
> I don't display images in my Emacs so cannot verify that this will work
> unfortunately (I don't even know how to get Emacs to display images, for
> that matter...).

For the sake of completeness about this last point, this is some code I have
in my staging area (of my .emacs file):

#+begin_src emacs-lisp
        (require 'iimage)

        ;; This allows for the viewing of images in-line in Org mode
        ;; documents.
        (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))

        (defun org-toggle-iimage-in-org ()
          (interactive)
          (let ((turning-on (not iimage-mode)))
            (set-face-underline-p 'org-link (not turning-on))
            (iimage-mode (or turning-on 0)))))
#+end_src

Best regards,
  Seb

-- 
Sebastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]