From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: pdf viewer Date: Sat, 6 Oct 2018 12:52:41 +0200 Message-ID: <20181006105241.GB19135@tuxteam.de> References: <87k1mv78ht.fsf@alfa.kjonca> <874ldzl7wu.fsf@alfa.kjonca> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rS8CxjVDS/+yyDmU" X-Trace: blaine.gmane.org 1538823901 14457 195.159.176.226 (6 Oct 2018 11:05:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2018 11:05:01 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 06 13:04:57 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8kOF-0003cG-0E for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Oct 2018 13:04:55 +0200 Original-Received: from localhost ([::1]:38697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8kQL-0002hl-EE for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Oct 2018 07:07:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8kOf-0001xt-EX for help-gnu-emacs@gnu.org; Sat, 06 Oct 2018 07:05:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8kCX-00033s-BV for help-gnu-emacs@gnu.org; Sat, 06 Oct 2018 06:52:52 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:53602) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g8kCW-0002Gb-Uu for help-gnu-emacs@gnu.org; Sat, 06 Oct 2018 06:52:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=u0ta8j6Tt/5b5e7qlGXHRg2Ud06XpbLHMJknsTfqO18=; b=FYIzV28MKjsB9Gojm/dXX8TBpNSL6meVQgOH92/fsD85sh7o5FZWYns23ePggkqj+YShWsuqvs0pzVF+3fQCBgrfLO1ye4jS4jBiXtFhBcyw7b732lSosHC9I4Nz1YFLe7EOoithggxibqFM3EPFAoU+k7GfcY7zRwztQ4MLz15x/YWi+2pAx2sQqleQDVaYpDf4Gn2stAoedaTgGqVg5ul/k85Gazwtq4qBLNJMg6BG10B/E7DU2niltMjf4Qsv2XZBkxQuUOuMX1sqE4Ui7Xm1bKDmiJPm4LQ6KXv4qCsZFE8RDC4xuFyEZk74BaIVMqSBzbTG9hJ0CnTin8VcEw==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1g8kCP-0005KQ-Qw for help-gnu-emacs@gnu.org; Sat, 06 Oct 2018 12:52:41 +0200 Content-Disposition: inline In-Reply-To: <874ldzl7wu.fsf@alfa.kjonca> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:118153 Archived-At: --rS8CxjVDS/+yyDmU Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 06, 2018 at 11:51:45AM +0200, Kamil Jo=C5=84ca wrote: > Teemu Likonen writes: >=20 > > Kamil Jo=C5=84ca [2018-10-06 11:02:54+02] wrote: > > > >> For some time emacs view pdf files with its internal viewer. But I > >> want to keep old behavior - open them with xpdf/evince How can I do > >> it? > > > > You can use mailcap-user-mime-data variable to override the (generated) > > defaults in mailcap-mime-data: > > > > (setq mailcap-user-mime-data > > '(((type . "application/pdf") > > (viewer . "evince %s")))) >=20 > It does not work. Still pdf is open by internal viewer :( > KJ Is this from org-mode? If yes, this snippet works for me: (setq org-file-apps (cons '("\\.pdf\\(?:::\\([0-9]*\\)\\)\\'" . "xpdf %s %1") (assoc-delete-all "\\.pdf\\'" org-file-apps))) Otherwise you might want to have a look at doc-view-mode: I think this is the one responsible for displaying the pdfs whithin Emacs. Cheers -- tom=C3=A1s --rS8CxjVDS/+yyDmU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlu4k/kACgkQBcgs9XrR2kbY1ACfeP/wvjArKtmruDzlxlo+BNxs CegAn3SFXd+Qo0qCGm8U1Hu6a3JQQMyn =+OR6 -----END PGP SIGNATURE----- --rS8CxjVDS/+yyDmU--