From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Garreau\, Alexandre" Newsgroups: gmane.emacs.help Subject: Re: pdf viewer Date: Sat, 06 Oct 2018 12:53:13 +0200 Message-ID: References: <87k1mv78ht.fsf@alfa.kjonca> <87woqvjtxg.fsf@iki.fi> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1538823829 9234 195.159.176.226 (6 Oct 2018 11:03:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2018 11:03:49 +0000 (UTC) User-Agent: Gnus (5.13), GNU Emacs 25.1.1 (i686-pc-linux-gnu) Cc: help-gnu-emacs@gnu.org, Kamil =?utf-8?Q?Jo=C5=84ca?= To: Teemu Likonen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 06 13:03:45 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 1g8kN2-0002D1-2k for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Oct 2018 13:03:40 +0200 Original-Received: from localhost ([::1]:38692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8kP8-00022T-Lx for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Oct 2018 07:05:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8kOe-0001xi-Du for help-gnu-emacs@gnu.org; Sat, 06 Oct 2018 07:05:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8kD8-0005sd-CA for help-gnu-emacs@gnu.org; Sat, 06 Oct 2018 06:53:27 -0400 Original-Received: from portable.galex-713.eu ([2a00:5884:8305::1]:49394) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g8kD2-0005Zb-V1 for help-gnu-emacs@gnu.org; Sat, 06 Oct 2018 06:53:22 -0400 Original-Received: from localhost ([::1] helo=portable.galex-713.eu) by portable.galex-713.eu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1g8kCv-0005n1-8w; Sat, 06 Oct 2018 12:53:14 +0200 X-GPG-FINGERPRINT: E109 9988 4197 D7CB B0BC 5C23 8DEB 24BA 867D 3F7F X-Accept-Language: fr, en, it, eo In-Reply-To: <87woqvjtxg.fsf@iki.fi> (Teemu Likonen's message of "Sat, 06 Oct 2018 12:39:07 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:5884:8305::1 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:118152 Archived-At: On 2018-10-06 at 12:39, Teemu Likonen wrote: > 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")))) My emacs uses its internal viewer doc view, and yet I see this in my predefined (I didn=E2=80=99t touch it myself) mailcap-user-mime-data: #+BEGIN_SRC elisp ("pdf" (viewer . "okular '%s'") (type . "application/pdf") (test "test" "\"$DISPLAY\"" "!=3D" "\"\"") ("nametemplate" . "%s.pdf")) #+END_SRC Also mine is huge, wouldn=E2=80=99t what you proposed erase it all? Wouldn= =E2=80=99t `add-to-list' be more appropriated? #+BEGIN_SRC elisp (add-to-list 'mailcap-user-mime-data '((type . "application/pdf") (viewer . "evince %s"))) #+END_SRC