Christian Moe <m...@christianmoe.com> 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 _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode