diff --git a/org-pdfview.el b/org-pdfview.el index a23ce56..3fcdf8d 100644 --- a/org-pdfview.el +++ b/org-pdfview.el @@ -28,8 +28,7 @@ ;; (eval-after-load 'org '(require 'org-pdfview)) ;; If you want, you can also configure the org-mode default open PDF file function. -;; (add-to-list 'org-file-apps '("\\.pdf\\'" . org-pdfview-open)) -;; (add-to-list 'org-file-apps '("\\.pdf::\\([[:digit:]]+\\)\\'" . org-pdfview-open)) +;; (add-to-list 'org-file-apps '("\\.pdf\\'" . (lambda (file link) (org-pdfview-open link)))) ;;; Code: (require 'org)