help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mailcap MIME type handlers


From: Teemu Likonen
Subject: Re: mailcap MIME type handlers
Date: Sun, 23 Sep 2018 09:08:27 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux)

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: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]