From mboxrd@z Thu Jan 1 00:00:00 1970 From: Colin Baxter Subject: Re: pdf files with openwith only, and only this. Date: Thu, 04 Jul 2019 12:00:07 +0100 Message-ID: <87ef36xdxk.fsf@yandex.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52998) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hizTZ-0004VU-N9 for emacs-orgmode@gnu.org; Thu, 04 Jul 2019 07:00:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hizTY-0002Hr-Ev for emacs-orgmode@gnu.org; Thu, 04 Jul 2019 07:00:29 -0400 Received: from forward101p.mail.yandex.net ([77.88.28.101]:37664) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hizTW-00025x-Gd for emacs-orgmode@gnu.org; Thu, 04 Jul 2019 07:00:27 -0400 In-Reply-To: (Joseph Vidal-Rosset's message of "Thu, 4 Jul 2019 12:41:56 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Joseph Vidal-Rosset Cc: "Liste-emacs-orgmode@gnu.org" Dear Joseph, >>>>> Joseph Vidal-Rosset writes: > Hi the list, I do not want to use pdf-tools to view pdf in emacs, > I want only to use an external program (evince) to view pdf > files. Unfortunately, links to pdf do not work with openwith and > my emacs open on a pdf. I cannot delete pdft-tools that is a > dependency of org-ref that I am using. A solution for my setup > would be welcome. Try this: (add-hook 'org-mode-hook '(lambda () (delete '("\\.pdf\\'" . default) org-file-apps) (add-to-list 'org-file-apps '("\\.pdf\\'" . "evince %s")))) Best wishes, Colin Baxter www.Colin-Baxter.com