Hi! To display a PDF from orgmode, I'm using pdf-tools and a package called org- pdfview.
Code from .emacs to this end: ,---- | (eval-after-load 'org '(require 'org-pdfview)) | (delete '("\\.pdf\\'" . default) org-file-apps) | (add-to-list 'org-file-apps '("\\.pdf\\'" . (org-pdfview-open link))) | (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (org-pdfview-open link))) `---- Error message, when trying to open a link using C-c C-o: ,---- | user-error: Please see Org News for version 9.0 about `org-file-apps'-- Error: | Deprecated usage of (org-pdfview-open link) `---- Unfortunately I'm lacking the elisp skills to understand the hint in the Org News: ,---- | *** ~org-file-apps~ no longer accepts S-expressions as commands | | The variable now accepts functions of two arguments instead of plain | S-expressions. Replacing a S-expresion with an appropriate function | is straightforward. For example | | : ("pdf" . (foo)) | | becomes | | : ("pdf" . (lambda (file link) (foo))) `---- OK, I don't speak lisp, but I tried this in my .emacs: ,---- | (add-to-list 'org-file-apps '("\\.pdf\\'" . (lambda (link) ( org-pdfview- open)))) | (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (lambda (link) (org- pdfview-open)))) `---- Well, error message when trying to open a link to a PDF: ,---- | user-error: Please see Org News for version 9.0 about `org-file-apps'--Lisp error: (lambda (link) (org-pdfview-open)) `---- Maybe someone can help me to adapt the code; would appreciate much! Regards, Alexander