From 2c63cd040851ede402a26fb55837fd89789f346b Mon Sep 17 00:00:00 2001 From: fpi Date: Sat, 9 May 2020 13:17:37 +0200 Subject: Show .cir mail attachments inline with spice-mode --- emacs-init.org | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/emacs-init.org b/emacs-init.org index 11dfd82..5296c67 100644 --- a/emacs-init.org +++ b/emacs-init.org @@ -3043,7 +3043,18 @@ I use =msmtp= to send mail. (mail-specify-envelope-from t) (mail-envelope-from 'header)) #+end_src - +*** MIME +#+begin_src emacs-lisp +(use-package mm-decode + :config + (use-package spice-mode + :ensure t) + (defun mm-display-spice-inline (handle) + "Show an spice mode text from HANDLE inline." + (mm-display-inline-fontify handle 'spice-mode)) + (add-to-list 'mm-inline-media-tests '("application/x-wine-extension-cir" mm-display-spice-inline identity)) + (add-to-list 'mm-inlined-types "application/x-wine-extension-cir")) +#+end_src *** MUA/Notmuch After using =mu4e= as my mail user agent for a while I switched to -- cgit v1.2.3