Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default pdf viewer #49

Open
lh-astro opened this issue Sep 7, 2020 · 3 comments
Open

Default pdf viewer #49

lh-astro opened this issue Sep 7, 2020 · 3 comments

Comments

@lh-astro
Copy link

lh-astro commented Sep 7, 2020

First of all, thank you for this package!

zotxt used to work very good in connection with pdf-tools (https://github.com/flatwhatson/pdf-tools) in doom emacs. Since an update about a month ago C-c " a doesn't open pdf-tools but the systemd default pdf-viewer instead. Is there a way to change this or set which pdf viewer should be used?

@egh
Copy link
Owner

egh commented Sep 8, 2020

Thank you! I don't think I've changed anything in zotxt. It uses org-open-file to open the file, so the documentation for that function should explain more on what it's doing. Of course, it's possible I did change something, but I haven't made many changes to the code base recently.

@arunkmv
Copy link

arunkmv commented Mar 11, 2021

Faced the same issue in Doom Emacs. The external link zotxt supplies is of file type, not pdf, hence Org was opening pdf files with the system default pdf viewer (which is the default set by Org).

Adding this line to config.el solved it for me.

(add-to-list 'org-file-apps '("\\.pdf\\'" . emacs))

@egh
Copy link
Owner

egh commented Mar 14, 2021

Excellent, thanks for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants