[Top][All Lists]

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

How to NOT use doc-view-mode as mime viewer?

From: Teemu Likonen
Subject: How to NOT use doc-view-mode as mime viewer?
Date: Fri, 01 Apr 2016 20:40:06 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)

It seems that Emacs 25 prefers doc-view-mode for displaying various
contents such as application/pdf mime types. I'd prefer external viewers
as defined elsewhere in my system (mailcap). I can brutally delete every
reference to doc-view-mode from mailcap-mime-data variable (see the code
below) but I'd prefer taking a less brutal route. Any ideas?

(require 'cl-lib)
(require 'mailcap)
(setq mailcap-mime-data
      (mapcar (lambda (major)
                (cons (car major)
                       (lambda (minor)
                          (lambda (v)
                            (cl-member v '(doc-view-mode
                          (cdr minor)
                          :key 'cdr))
                       (cdr major))))

/// Teemu Likonen   - .-..   <> //
// 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]