]> git.donarmstrong.com Git - org-ref.git/blobdiff - org-ref.org
uses defpar which causes an issue on loading for me.
[org-ref.git] / org-ref.org
index f0d94ec9c438e464a973331b2c3949f61b291e0a..e0ce7436c73dad8003305084649947cb302bab0a 100644 (file)
@@ -412,7 +412,7 @@ label:test
 
 
 (defcustom org-ref-label-color
-  "black"
+  "dark magenta"
   "Color of label links"
   :group 'org-ref)
 
@@ -452,11 +452,17 @@ label:test
   `((t (:inherit org-link :foreground ,org-ref-ref-color)))
   "Face for ref links in org-ref.")
 
-(global-hi-lock-mode 1)
-(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: