I've looked around a bit and haven't seen any examples of how you might differentiate different types of org link visually, perhaps with a font-lock; specifically differentiating the protocol (not the link content)

For example, [[id:some-guid][Link Name]] would be a different color than [[file+emacs:file-path][My File]].

Has anyone tried to do this before?

Just to clarify, the idea is not to apply different styles when publishing, but rather in-buffer.

(Bonus: how would you hook into a theme palette when specifying color?)

submitted by /u/rdcdr
[link] [comments]