From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: Set emacs as pdf viewer? Date: Thu, 5 Feb 2015 17:50:08 -0800 (PST) Message-ID: <10f6ac9a-42a6-44ee-8eee-3b42f3c5d533@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423187721 10968 80.91.229.3 (6 Feb 2015 01:55:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2015 01:55:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 06 02:55:20 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YJY8d-0003eC-8z for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2015 02:55:19 +0100 Original-Received: from localhost ([::1]:46324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJY8c-0005Yn-6U for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Feb 2015 20:55:18 -0500 X-Received: by 10.182.165.132 with SMTP id yy4mr1229219obb.20.1423187409672; Thu, 05 Feb 2015 17:50:09 -0800 (PST) X-Received: by 10.51.15.133 with SMTP id fo5mr25635igd.3.1423187409588; Thu, 05 Feb 2015 17:50:09 -0800 (PST) Original-Path: usenet.stanford.edu!hl2no10391039igb.0!news-out.google.com!qk8ni25600igc.0!nntp.google.com!hl2no10391032igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.9.88; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.9.88 User-Agent: G2/1.0 Injection-Date: Fri, 06 Feb 2015 01:50:09 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:210242 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102519 Archived-At: On Friday, February 6, 2015 at 2:16:50 AM UTC+5:30, Tory S. Anderson wrote: > It feels silly to ask this but I've been using Okular to view all my pdfs= for so long that I don't know how to switch to using emacs (now that we ha= ve the excellent PDF-Tools package), in particular with Auctex. I use the f= ollowing to allow okular, but without it the PDF just opens in some hideous= no-name application.=20 >=20 > (setq browse-pdf-generic-program (executable-find "okular")) >=20 > How do I make emacs my default PDF viewer for Auctex? As it happens I just discovered this yesterday, though it will depend on de= sktop (kde/gnome/ etc) I use xfce. For a long time for certain types of files (certain mime types), instead of= starting some editor (let alone emacs) it would start wine and call notepa= d! The official app for that is xdg-open -- which I found completely impenetra= ble. Yesterday I found that xfce uses exo-open which is linked to xfce4-mime-set= tings Your desktop will have something similar