[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] orgmode & pdf-tools
From: |
AW |
Subject: |
Re: [O] orgmode & pdf-tools |
Date: |
Tue, 16 Aug 2016 13:19:08 +0200 |
User-agent: |
KMail/5.2.3 (Linux/4.7.0-2-default; KDE/5.24.0; x86_64; ; ) |
Am Montag, 25. Juli 2016, 13:47:25 CEST schrieb Nicolas Goaziou:
> Hello,
>
> Pablo S. Casas <address@hidden> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [O] orgmode & pdf-tools,
AW <=