Am Montag, 25. Juli 2016, 13:47:25 CEST schrieb Nicolas Goaziou:
> Hello,
>
> Pablo S. Casas <[email protected]> writes:
> > After edebugging org-open-file I found a possible solution. The
> >
> > documentation string for org-file-apps should be modified for the sexp
> > case to use the link variable instead of file.
> >
> > #+BEGIN_SRC elisp
> > (add-to-list 'org-file-apps '("\\.pdf\\'" . (org-pdfview-open link)))
> > (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . (org-pdfview-open
> > link))) #+END_SRC
>
> I'm not sure about what the initial problem is, but there is no more
> "sexp" case in `org-file-apps' in development version. You can use
> a function instead.
>
>
> Regards,
@ Pablo, thank you, that solved it! Great!
@ all:
My initial setup was:
(eval-after-load 'org '(require 'org-pdfview))
(delete '("\\.pdf\\'" . default) org-file-apps)
(add-to-list 'org-file-apps '("\\.pdf\\'" . org-pdfview-open))
(add-to-list 'org-file-apps '("\\.pdf::\\([[:digit:]]+\\)\\'" . org-pdfview-
open))
Now and working:
(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)))
So the way to include org-pdfview-open did not work with openSuse and Emacs
24.5
If somebody _please_ could swap the "sexp" in org-file-apps with whatever
function, as Nicolas mentioned? It really is helpful to open a lengthy PDF at
the right page...
And sorry for answering so late, I missed the email.
Regards,
Alexander