X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=org-ref.org;h=f01473b388c5fa6f1f25db89eb1b6d638ab5f4c2;hp=4e5b5415ba5182f6302e86727a526cafb6d1319a;hb=3dfba2deeaf9c0690527f9a351798af6bdb140ba;hpb=b261cfa0bef3767623fc689785fe160f6ab6c20c;ds=sidebyside diff --git a/org-ref.org b/org-ref.org index 4e5b541..f01473b 100644 --- a/org-ref.org +++ b/org-ref.org @@ -452,11 +452,15 @@ label:test `((t (:inherit org-link :foreground ,org-ref-ref-color))) "Face for ref links in org-ref.") - -(when org-ref-colorize-links +(defun org-ref-colorize-links () + "Colorize org-ref links." + (hi-lock-mode 1) (highlight-regexp org-ref-cite-re 'org-ref-cite-face) (highlight-regexp org-ref-label-re 'org-ref-label-face) (highlight-regexp org-ref-ref-re 'org-ref-ref-face)) + +(when org-ref-colorize-links + (add-hook 'org-mode-hook 'org-ref-colorize-links)) #+END_SRC #+RESULTS: