How do I make Org-mode open PDF files in Evince?

N.N. picture N.N. · Jan 12, 2012 · Viewed 11.1k times · Source

In Org-mode when I try to open a link to a PDF file nothing happens. Also, when I do C-c C-e d to export as LaTeX and process to PDF and open the PDF is generated but not opened. How do I make Org-mode open PDF files in Evince?

I am using Org-mode 7.6 in GNU Emacs 23.3.1 and Evince 3.2.1 in Ubuntu 11.10.

Answer

certainly picture certainly · Jan 12, 2012
M-x customize-variable [RET] org-file-apps [RET]

If org uses your system defaults, you have to edit your ./mailcap file.

Try adding this line:

application/pdf; /usr/bin/evince %s