X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=org-ref.org;h=b18d442f494cd8ce342c99dc41287352c97fc823;hp=148e98cd836f84634d4897f8eae631ef901454df;hb=dbf50b10a74fc7034de97c6e2a16fc43a6459a37;hpb=c6e740846a68ae8a2986459912c55ed2faa6574b diff --git a/org-ref.org b/org-ref.org index 148e98c..b18d442 100644 --- a/org-ref.org +++ b/org-ref.org @@ -396,7 +396,6 @@ label:test "When non-nil, change colors of links" :group 'org-ref) - (defcustom org-ref-cite-color "forest green" "Color of cite like links" @@ -420,7 +419,11 @@ label:test (setq org-ref-cite-re - (concat "\\(" (mapconcat 'identity org-ref-cite-types "\\|") "\\)" + (concat "\\(" (mapconcat + (lambda (x) + (replace-regexp-in-string "\*" "\\\\*" x) + ) + org-ref-cite-types "\\|") "\\)" ":\\([a-zA-Z0-9-_:]*,?\\)*")) @@ -434,15 +437,18 @@ label:test (defface org-ref-cite-face `((t (:inherit org-link :foreground ,org-ref-cite-color))) - "Color for cite links") + "Color for cite-like links in org-ref.") + (defface org-ref-label-face `((t (:inherit org-link :foreground ,org-ref-label-color))) - "Color for cite links") + "Color for ref links in org-ref.") + (defface org-ref-ref-face `((t (:inherit org-link :foreground ,org-ref-ref-color))) - "Color for cite links") + "Face for ref links in org-ref.") + (when org-ref-colorize-links (highlight-regexp org-ref-cite-re 'org-ref-cite-face)