When i click or C-c C-o
on pdf link in org-mode, Emacs opens the pdf with gimp.
I don't find how to overide this behavior.
Tried with these two recipes
(require 'openwith)
(openwith-mode t)
(add-to-list 'mm-inhibit-file-name-handlers 'openwith-file-handler
(setq openwith-associations '(("\\.pdf\\'" "evince" (file))))
With first recipe, no change on behavior
(org-add-link-type "pdf" 'org-pdf-open nil)
(defun org-pdf-open (link)
(let* ((path+page (split-string link "#page="))
(pdf-file (car path+page))
(page (car (cdr path+page))))
(start-process "view-pdf" nil "evince" "--page-index" page pdf-file)))
With second recipe, no change in behavior
Can you help me ?
Best regards