Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tsuchm/bf9a6ee856dcf89c94f5 to your computer and use it in GitHub Desktop.
Save tsuchm/bf9a6ee856dcf89c94f5 to your computer and use it in GitHub Desktop.
;; MIME part を表示するときに doc-view-mode を利用しないための設定
;; doc-view-mode を使うようになっていると,applicate/pdf な MIME part
;; を表示できずに,単にファイルを保存してしまう.
(setq mailcap-mime-data
(mapcar
(lambda (data)
(cons (car data)
(delq nil
(mapcar
(lambda (pair)
(unless (eq (cdr (assq 'viewer (cdr pair))) 'doc-view-mode)
pair))
(cdr data)))))
mailcap-mime-data))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment