[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: |
Teemu Likonen |
Subject: |
Re: Display attached pdf's with external view, not with doc-view-mode |
Date: |
Fri, 01 Apr 2016 20:33:08 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) |
Charles Philip Chan [2016-04-01 12:38:27-04] wrote:
> This is not a Gnus problem, but Emacs have changed to default to
> docview-mode for pdf files, ignoring mailcap.
Thanks. I hope there's a nice way to completely ignore *-view-mode. I
wrote this but it is quite brutal approach:
(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 ///
signature.asc
Description: PGP signature