From: Charles Philip Chan <cpchan@bell.net>
To: info-gnus-english@gnu.org
Subject: Re: Display attached pdf's with external view, not with doc-view-mode
Date: Fri, 01 Apr 2016 12:38:27 -0400 [thread overview]
Message-ID: <87k2khgu7w.fsf@bell.net> (raw)
In-Reply-To: <8760w19xaf.fsf@iki.fi>
[-- Attachment #1.1: Type: text/plain, Size: 1046 bytes --]
Teemu Likonen <tlikonen@iki.fi> writes:
> I've been using Emacs 25.0.92 for a while and noticed that Gnus has
> started to display attached pdf files with doc-view-mode (inside Emacs)
> instead of launching an external viewer. In mailcap-mime-data variable I
> have external viewer (Okular) first for the application/pdf MIME type
> but Gnus doesn't want to respect that.
This is not a Gnus problem, but Emacs have changed to default to
docview-mode for pdf files, ignoring mailcap.
> How do configure Gnus to use external viewer for attached pdf files?
;;Remove doc-view so pdf will open with ocular
(setcdr
(assoc "application" mailcap-mime-data)
(remove '("pdf"
(viewer . doc-view-mode)
(type . "application/pdf")
(test eq window-system 'x))
(cdr (assoc "application" mailcap-mime-data))))
Charles
--
"If you want to travel around the world and be invited to speak at a lot
of different places, just write a Unix operating system."
(By Linus Torvalds)
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 180 bytes --]
next prev parent reply other threads:[~2016-04-01 16:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-01 15:14 Teemu Likonen
2016-04-01 16:38 ` Charles Philip Chan [this message]
2016-04-01 17:33 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k2khgu7w.fsf@bell.net \
--to=cpchan@bell.net \
--cc=info-gnus-english@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 NNTP newsgroup(s).