From: Teemu Likonen <tlikonen@iki.fi>
To: help-gnu-emacs@gnu.org
Subject: How to NOT use doc-view-mode as mime viewer?
Date: Fri, 01 Apr 2016 20:40:06 +0300 [thread overview]
Message-ID: <871t6pgrd5.fsf@iki.fi> (raw)
[-- Attachment #1: Type: text/plain, Size: 1101 bytes --]
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)
(cl-remove-if
(lambda (minor)
(cl-member-if
(lambda (v)
(cl-member v '(doc-view-mode
pdf-view-mode
view-mode)))
(cdr minor)
:key 'cdr))
(cdr major))))
mailcap-mime-data))
--
/// Teemu Likonen - .-.. <https://github.com/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
next reply other threads:[~2016-04-01 17:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-01 17:40 Teemu Likonen [this message]
2016-04-01 18:39 ` How to NOT use doc-view-mode as mime viewer? Michael Heerdegen
2016-04-02 7:56 ` Teemu Likonen
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=871t6pgrd5.fsf@iki.fi \
--to=tlikonen@iki.fi \
--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).