From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: mailcap MIME type handlers Date: Sun, 23 Sep 2018 09:08:27 +0300 Message-ID: <877ejchhk4.fsf@iki.fi> References: <87va6xudrg.fsf@bsb.me.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1537683294 11555 195.159.176.226 (23 Sep 2018 06:14:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Sep 2018 06:14:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Ben Bacarisse Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 23 08:14:50 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 1g3xfO-0002tv-ID for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Sep 2018 08:14:50 +0200 Original-Received: from localhost ([::1]:39461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3xhU-0000qn-Ug for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Sep 2018 02:17:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3xgV-0000iw-U1 for help-gnu-emacs@gnu.org; Sun, 23 Sep 2018 02:16:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3xZF-0004EI-EC for help-gnu-emacs@gnu.org; Sun, 23 Sep 2018 02:08:32 -0400 Original-Received: from mail.kapsi.fi ([2001:67c:1be8::25]:49441) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g3xZF-0004Dt-6u for help-gnu-emacs@gnu.org; Sun, 23 Sep 2018 02:08:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=PFiTk9AH5FM6JXtOUnjwrlngi35NDUMsj8MLoJbxtHM=; b=nPO4+OMYgUL92aH06PdPr7iaVG SRnpmh7TQSYhzYJuWGI4YRjNYzhOuDR++LD0RBjKGOxFKgwv/30fdtZRm5YVbmRsYufM3WK+wyOLC Cde4/B6ovaeMrGw5ZAx3hg/fSxpamreGA5kVs7Q/lGbHjxNHDRnEPgdZTf83DpLQKZJBUzoMOkOtp vZAEUTPCGoUU4ulsc9Y1d7FXgBBDjk4GT+jwtjjAWn9hsYdd/0g0t0LFF6Ru6qxvmZ/kHp/cdta2Q oaOO2DV/fWJrBYVVU94WL40YcSJ8pyzidGiq+ZOeSqk42oQ1bXZxZ6/DasfS/joJCBcBXEvjjl8Xn j0GEMlGw==; Original-Received: from mobile-access-6df05e-244.dhcp.inet.fi ([109.240.94.244] helo=mithlond) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1g3xZE-0003uJ-0l; Sun, 23 Sep 2018 09:08:28 +0300 In-Reply-To: <87va6xudrg.fsf@bsb.me.uk> (Ben Bacarisse's message of "Sun, 23 Sep 2018 03:52:03 +0100") X-SA-Exim-Connect-IP: 109.240.94.244 X-SA-Exim-Mail-From: tlikonen@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:67c:1be8::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:117979 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ben Bacarisse [2018-09-23 03:52:03+01] wrote: > How can I get Emacs (specifically mailcap.el) to prioritise my > system's or my personal mailcap settings? > > Gnus, for example, opens PDF files in doc-view-mode rather than using > the program specified in /etc/mailcap or ~/.mailcap. Use variable mailcap-user-mime-data: (setq mailcap-user-mime-data '(((type . "application/pdf") (viewer . "my-viewer %s")))) =2D-=20 /// Teemu Likonen - .-.. // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 /// --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEkhZiiC54Bnj5a16Skzo1BB5+rVEFAlunLdsACgkQkzo1BB5+ rVHvyAgAnkgGQLBPl7v3WKKwg0HS78a3hX/R2Ylirr7mtw1pyeENOD6qbn9vVpFe ty3pM80APGmFlI34cFOjZ9GMoLtdkFS0W7upkquddenDuM533diqi82dJyRJx0Il lh6weEa1awgObu9hey9xD/Z8psq0VvCvyyURoQyi1K/tlQXqeo562Y/aDj1uKIND mBn69HqjxqX2Z3CkNyUOS5kq1pz0bHPD8zswNZicXHR7EhAp3XJS3ubaYfrkXxZ+ ZvQeL0hyxyRV6rvS1hi+oRak3w22GFrxUxDO0uKv9n/PlBTiySNs1hRY86jlp3hD 9hnrRjgFxXzqgLV77tSWHFWA9nR84w== =mrZ/ -----END PGP SIGNATURE----- --=-=-=--