X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=org-ref.org;h=42283e29e4fe03c5de48aea05611f7e0a5e70024;hb=a293ab5b16bffc69aef20fc708ac687e53f6ae59;hp=148e98cd836f84634d4897f8eae631ef901454df;hpb=c6e740846a68ae8a2986459912c55ed2faa6574b;p=org-ref.git diff --git a/org-ref.org b/org-ref.org index 148e98c..42283e2 100644 --- a/org-ref.org +++ b/org-ref.org @@ -66,6 +66,7 @@ The only external require is reftex-cite (require 'reftex-cite) (require 'dash) (require 'helm) +(require 'helm-config) (require 'helm-bibtex) #+END_SRC @@ -396,7 +397,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 +420,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 +438,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)