A few years ago I started using Org-mode for taking notes on PDFs. I used one of the solutions in How do I make Org-mode open PDF files in Evince? to make Org-mode open PDF files in Evince; I used the following in my .emacs :
(add-hook 'org-mode-hook
'(lambda ()
(delete '("\\.pdf\\'" . default) org-file-apps)
(add-to-list 'org-file-apps '("\\.pdf\\'" . "evince %s"))))
I've returned to my .org file ater a year or so. Most probably my org-mode updated (it's 8.2.10 now) and the solution above no longer works -- Emacs itself opens the PDFs. What should I do?
What's troubling me additionally is that literally the first example in the documentation for org-file-apps is
Example: ("pdf" . "evince %s")
to open PDFs with evince.
However, I tried
(add-hook 'org-mode-hook
'(lambda ()
(delete '("\\.pdf\\'" . default) org-file-apps)
(add-to-list 'org-file-apps '("pdf" . "evince %s"))))
and it still does not work -- the PDF is opened in an Emacs buffer.
The value of org-file-apps is:
(("pdf" . "evince %s")
(auto-mode . emacs)
("\\.mm\\'" . default)
("\\.x?html?\\'" . default))
Evince is installed :-) I'm using Emacs 24.5.1 on an Ubuntu 16.04 LTS. What should I do?