From 8567d22b28bb74586896e1a11af2406368978309 Mon Sep 17 00:00:00 2001 From: John Kitchin Date: Sun, 25 Jan 2015 11:37:40 -0500 Subject: [PATCH] clean up and add description --- org-ref.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2