fuxialexander / org-pdftools

A custom org link type for pdf-tools
GNU General Public License v3.0
335 stars 36 forks source link

README: org-pdftools hook #36

Closed firmart closed 3 years ago

firmart commented 4 years ago

In the README configuration

(use-package org-pdftools
  :hook (org-load . org-pdftools-setup-link))

The hook has no effect to me (i.e. cannot find a pdf entry in org-link-parameters). Not sure what the documentation means by "when org.el is loaded" since org-mode is byte-compiled. Anyway, I changed the hook to org-mode and the issue is gone.

(use-package org-pdftools
  :hook (org-mode . org-pdftools-setup-link))
timmli commented 4 years ago

I can confirm this. I'm instead using

(use-package org-pdftools
    :config
    (with-eval-after-load 'org
        (org-pdftools-setup-link)))