From: Teemu Likonen <tlikonen@iki.fi>
To: Ben Bacarisse <ben.usenet@bsb.me.uk>
Cc: help-gnu-emacs@gnu.org
Subject: Re: mailcap MIME type handlers
Date: Sun, 23 Sep 2018 09:08:27 +0300 [thread overview]
Message-ID: <877ejchhk4.fsf@iki.fi> (raw)
In-Reply-To: <87va6xudrg.fsf@bsb.me.uk> (Ben Bacarisse's message of "Sun, 23 Sep 2018 03:52:03 +0100")
[-- Attachment #1: Type: text/plain, Size: 585 bytes --]
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"))))
--
/// Teemu Likonen - .-.. <https://keybase.io/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2018-09-23 6:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-23 2:52 mailcap MIME type handlers Ben Bacarisse
2018-09-23 6:08 ` Teemu Likonen [this message]
[not found] ` <mailman.1164.1537683367.1284.help-gnu-emacs@gnu.org>
2018-09-23 14:38 ` Ben Bacarisse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877ejchhk4.fsf@iki.fi \
--to=tlikonen@iki.fi \
--cc=ben.usenet@bsb.me.uk \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).