summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eww-conf.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/eww-conf.el b/eww-conf.el
index d3f3173..c9a3d79 100644
--- a/eww-conf.el
+++ b/eww-conf.el
@@ -20,6 +20,18 @@
(setq eww-suggest-uris '(eww-links-at-point thing-at-point-url-at-point))
(setq eww-browse-url-new-window-is-tab nil)
+;;; Use pdf-view to view PDF files if available.
+
+(setq mailcap-prefer-mailcap-viewers nil)
+
+(setq mailcap-user-mime-data
+ '(((viewer . pdf-view-mode)
+ (type . "application/pdf")
+ (test . window-system))
+ ((viewer . doc-view-mode)
+ (type . "application/pdf")
+ (test . window-system))))
+
;; key-bindings
(define-key global-map (vector ?\s-w) #'durand-eww-map)