I use an org
file called books.org
to store all the information about my books, including the location of the files (.pdf
or .djvu
). Usually I open these files directly from Emacs by pressing C-c o
. This works like a charm with .pdf
which are opened in Evince because I added this lines in my .emacs
:
(add-hook 'org-mode-hook
'(lambda ()
(delete '("\\.pdf\\'" . default) org-file-apps)
(add-to-list 'org-file-apps '("\\.pdf\\'" . "evince %s"))))
but not with .djvu
which are not opened even if Evince can handle both filetypes. Do you know how I can tell to Emacs to use Evince to open these files?