From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to make the new exporter open PDF using evince? Date: Mon, 25 Feb 2013 01:52:44 -0500 Message-ID: <15306.1361775164@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9rvc-0001XD-80 for Emacs-orgmode@gnu.org; Mon, 25 Feb 2013 01:52:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9rvb-0008Ga-0c for Emacs-orgmode@gnu.org; Mon, 25 Feb 2013 01:52:48 -0500 Received: from g4t0017.houston.hp.com ([15.201.24.20]:11897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9rva-0008GI-RC for Emacs-orgmode@gnu.org; Mon, 25 Feb 2013 01:52:46 -0500 In-Reply-To: Message from James Harkins of "Mon, 25 Feb 2013 14:25:56 +0800." 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: jamshark70@dewdrop-world.net Cc: Emacs-orgmode@gnu.org James Harkins wrote: > A quick web search didn't turn up anything handy, so I thought I'd ask here. > > Is it possible to configure the new exporter to open a PDF (generated > by LaTeX) using evince instead of okular? > > That is, if I open a file browser (this is Ubuntu 12.04) and > double-click on a PDF, evince opens it. If I write a beamer > presentation in org and do C-c C-e l O, okular opens it. > > I did a couple of customize-apropos searches but didn't see anything obvious. > > (I'm aware that some swear by okular, but I think evince handles > paging slightly better when zooming to "best fit" for presentations. > So I'd rather use that.) > There are too many cooks in this particular kitchen, but checking a couple of places should be enough in most cases: org-file-apps is the most immediate place but unless you've customized it, it should say ... ("\\.pdf\\'" . default) ... which takes us to the next cook: mailcap. ~/.mailcap overrides the system /etc/mailcap and there may be more (`man 5 mailcap' should reveal the rest), so check them in order. I prefer xpdf so my mailcap says: ,---- | $ grep pdf ~/.mailcap | application/pdf; xpdf -q %s `---- I like putting things in ~/.mailcap, but you can season to taste. HTH, Nick