From 931e7babcb81d74709825580192f9ad58d595b63 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Mon, 23 Feb 2015 09:36:06 +0000 Subject: [PATCH] lisp/gnus/mailcap.el: Support PDF Tools for PDF viewing of attachments * mailcap.el (mailcap-mime-data): Support `pdf-view-mode' (from PDF Tools: https://github.com/politza/pdf-tools) for viewing PDF attachments in emacs. --- lisp/gnus/ChangeLog | 6 ++++++ lisp/gnus/mailcap.el | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 5f8b092c62a..7a4c463208a 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,9 @@ +2015-02-23 Tassilo Horn + + * mailcap.el (mailcap-mime-data): Support `pdf-view-mode' (from PDF + Tools: https://github.com/politza/pdf-tools) for viewing PDF + attachments in emacs. + 2015-02-23 Katsumi Yamaoka * gnus-art.el (gnus-mime-display-single): Avoid "End of buffer" error. diff --git a/lisp/gnus/mailcap.el b/lisp/gnus/mailcap.el index 01d8587f06a..9f844139960 100644 --- a/lisp/gnus/mailcap.el +++ b/lisp/gnus/mailcap.el @@ -152,6 +152,11 @@ This is a compatibility function for different Emacsen." (non-viewer . t) (type . "application/zip") ("copiousoutput")) + ("pdf" + (viewer . pdf-view-mode) + (type . "application/pdf") + (test . (and (fboundp 'pdf-view-mode) + (eq window-system 'x)))) ("pdf" (viewer . doc-view-mode) (type . "application/pdf") -- 2.39.2