[Top][All Lists]

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

Re: [Orgmode] text color + highlight

From: Eric Schulte
Subject: Re: [Orgmode] text color + highlight
Date: Tue, 10 Aug 2010 17:47:24 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Christian Moe <address@hidden> writes:

> Admittedly, though, all the currently defined link types mean "do
> something when clicked", which a =color:red= link does not.

well this may be trivial, but at least it's an action
--8<---------------cut here---------------start------------->8---
 (lambda (path)
   (message (concat "color "
                    (progn (add-text-properties
                            0 (length path)
                            (list 'face `((t (:foreground ,path))))
                            path) path))))
 (lambda (path desc format)
    ((eq format 'html)
     (format "<span style=\"color:%s;\">%s</span>" path desc))
    ((eq format 'latex)
     (format "{\\color{%s}%s}" path desc)))))
--8<---------------cut here---------------end--------------->8---

Best -- Eric

> Christian

reply via email to

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