I'm starting to use org-mode to export text to LaTeX.

My problem is that it opens the generated PDF with ebook-viewer (it is a EPUB, CHM reader) instead of using evince.


Does anyone know how to change this behaviour and configure evince to be the default viewer?


The viewer should be the same as that chosen when you use xdg-open or simply double click a pdf in a file manager. The default file associations are set in either /usr/share/applications/defaults.list (global) or one of ~/.local/share/applications/mimeapps.list or ~/.local/share/applications/defaults.list.

For example, this is what I have on my system:

$ grep -i pdf /usr/share/applications/defaults.list 

Assuming you have the corresponding .desktop file in the right location (/usr/share/applications/ for example), emacs should just find it and open with the right viewer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.