info-gnus-english
[Top][All Lists]
Advanced

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

Re: Display attached pdf's with external view, not with doc-view-mode


From: Charles Philip Chan
Subject: Re: Display attached pdf's with external view, not with doc-view-mode
Date: Fri, 01 Apr 2016 12:38:27 -0400
User-agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.1.50 (gnu/linux)

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


reply via email to

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