[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---
(org-add-link-type
"color"
(lambda (path)
(message (concat "color "
(progn (add-text-properties
0 (length path)
(list 'face `((t (:foreground ,path))))
path) path))))
(lambda (path desc format)
(cond
((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
- Re: [Orgmode] text color + highlight, (continued)
- Re: [Orgmode] text color + highlight, Christian Moe, 2010/08/10
- Re: [Orgmode] text color + highlight, Carsten Dominik, 2010/08/10
- Re: [Orgmode] text color + highlight, Christian Moe, 2010/08/10
- Re: [Orgmode] text color + highlight, Eric Schulte, 2010/08/10
- Re: [Orgmode] text color + highlight, Christian Moe, 2010/08/10
- Re: [Orgmode] text color + highlight, David Maus, 2010/08/10
- Re: [Orgmode] text color + highlight, Christian Moe, 2010/08/10
- Re: [Orgmode] text color + highlight,
Eric Schulte <=
- [Orgmode] Re: text color + highlight, Dan Davison, 2010/08/11
- Re: [Orgmode] Re: text color + highlight, Samuel Wales, 2010/08/11
- Re: [Orgmode] text color + highlight, Samuel Wales, 2010/08/10
- Re: [Orgmode] text color + highlight, Jan Böcker, 2010/08/11
- [Orgmode] Re: text color + highlight, Jambunathan K, 2010/08/09
- [Orgmode] Re: text color + highlight, Noorul Islam K M, 2010/08/09
- Re: [Orgmode] text color + highlight, Nick Dokos, 2010/08/07
- Re: [Orgmode] text color + highlight, Sebastian Rose, 2010/08/08
- Re: [Orgmode] text color + highlight, Samuel Wales, 2010/08/08