X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=org-ref.org;h=e0ce7436c73dad8003305084649947cb302bab0a;hp=40fe0412895ff46d609baabef730e2395f6f76a5;hb=dbf4fc3bfed591ebffab129abc3ad6359bea97fa;hpb=86398931c210878a59e970f83c9fd782f9d874c4 diff --git a/org-ref.org b/org-ref.org index 40fe041..e0ce743 100644 --- a/org-ref.org +++ b/org-ref.org @@ -412,7 +412,7 @@ label:test (defcustom org-ref-label-color - "black" + "dark magenta" "Color of label links" :group 'org-ref) @@ -453,10 +453,16 @@ label:test "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: @@ -1776,14 +1782,14 @@ We need some convenience functions to open act on the citation at point. These w (catch 'done (let ((url (bibtex-autokey-get-field "url"))) (when url - (browse-url url) + (browse-url (s-trim url)) (throw 'done nil))) (let ((doi (bibtex-autokey-get-field "doi"))) (when doi (if (string-match "^http" doi) (browse-url doi) - (browse-url (format "http://dx.doi.org/%s" doi))) + (browse-url (format "http://dx.doi.org/%s" (s-trim doi)))) (throw 'done nil))))))))