]> git.donarmstrong.com Git - org-ref.git/blobdiff - org-ref.el
minor space removal
[org-ref.git] / org-ref.el
index a0191829ed1dd69428cfacd1eaa6d5857a56da21..edc7adfc89829d8faa9db790e34cc43ea1e6bc41 100644 (file)
@@ -3398,7 +3398,12 @@ This is a list of cons cells '((\"description\" . action)). The action function
 ;; example of adding your own function
 (add-to-list
  'org-ref-helm-user-candidates
- '("Example" . (lambda () (message-box "You did it!")))
+ '("Open pdf in emacs" . (lambda ()
+                          (find-file
+                           (concat
+                            org-ref-pdf-directory
+                            (car (org-ref-get-bibtex-key-and-file))
+                            ".pdf"))))
  t)
 
 ;;;###autoload