From 19220f04862409ba40d9c72d39e9c2cd03643dd6 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Sun, 8 Jan 2023 22:45:08 +0100 Subject: Autoview patches using source-highlight in mails --- tw/home/files/mailcap | 2 ++ tw/home/files/muttrc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tw/home/files/mailcap b/tw/home/files/mailcap index 904ce065..4e771575 100644 --- a/tw/home/files/mailcap +++ b/tw/home/files/mailcap @@ -8,3 +8,5 @@ text/calendar; khal printics %s; copiousoutput image/*; kitty +kitten icat %s; copiousoutput audio/*; mpv --no-video %s application/pdf; zathura %s +text/x-diff; source-highlight -f esc -s diff -i %s; copiousoutput +text/x-patch; source-highlight -f esc -s diff -i %s; copiousoutput diff --git a/tw/home/files/muttrc b/tw/home/files/muttrc index 470b1f2b..a037611e 100644 --- a/tw/home/files/muttrc +++ b/tw/home/files/muttrc @@ -76,7 +76,7 @@ set header_cache = `echo "\$XDG_CACHE_HOME/neomutt/"` ignore x-mailer user-agent alternative_order text/plain text/enriched text/html text image -auto_view text/html text/calendar image/jpeg image/png +auto_view text/html text/calendar text/x-diff text/x-patch image/jpeg image/png set my_mythic = "imaps://oncilla.mythic-beasts.com/" account-hook "$my_mythic" 'unmailboxes *' -- cgit v1.2.3