From: John Kitchin Date: Sun, 25 Jan 2015 16:37:40 +0000 (-0500) Subject: clean up and add description X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=commitdiff_plain;h=8567d22b28bb74586896e1a11af2406368978309;hp=21fc32b8c8386af4562833b9be6521ec3af69865 clean up and add description --- diff --git a/org-ref.org b/org-ref.org index d4dc2a4..c6c3a67 100644 --- a/org-ref.org +++ b/org-ref.org @@ -2879,12 +2879,12 @@ Checks for pdf and doi, and add appropriate functions." (when (string= doi "") (setq doi nil)) (when (string= url "") (setq url nil)) + ;; Conditional pdf functions (if (file-exists-p pdf-file) (add-to-list 'candidates '("Open pdf" . org-ref-open-pdf-at-point) - t - ) + t) (add-to-list 'candidates '("Try to get pdf" . (lambda () @@ -2900,6 +2900,7 @@ Checks for pdf and doi, and add appropriate functions." '("Open notes" . org-ref-open-notes-at-point) t) + ;; conditional url and doi functions (when (or url doi) (add-to-list 'candidates