emacs-orgmode
[Top][All Lists]
Advanced

[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: AW
Subject: Re: [O] Adapting to orgmode 9.0: deprecated usage of (org-pdfview-open link) - howto ?
Date: Wed, 09 Nov 2016 20:10:03 +0100
User-agent: KMail/5.3.2 (Linux/4.8.6-2-default; KDE/5.27.0; x86_64; ; )

Am Mittwoch, 9. November 2016, 18:00:50 CET schrieb Pablo S.  Casas:
> 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

Yes! Thank you! 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]