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 ///

Attachment: signature.asc
Description: PGP signature

_______________________________________________
info-gnus-english mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to