[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Adapting to orgmode 9.0: deprecated usage of (org-pdfview-open l
From: |
Pablo S . Casas |
Subject: |
Re: [O] Adapting to orgmode 9.0: deprecated usage of (org-pdfview-open link) - howto ? |
Date: |
Wed, 09 Nov 2016 18:00:50 +0100 (CET) |
From: AW <address@hidden>
Subject: [O] Adapting to orgmode 9.0: deprecated usage of (org-pdfview-open
link) - howto ?
Date: Wed, 09 Nov 2016 11:01:13 +0100
> 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))))
> `----
For me it works replacing the former:
(add-to-list 'org-file-apps '("\\.pdf\\'" . (org-pdfview-open link)))
(add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (org-pdfview-open
link)))
by simply:
(add-to-list 'org-file-apps
'("\\.pdf\\'" . (lambda (file link) (org-pdfview-open link))))
Hope it helps.
Pablo