diff --git a/reference/users/youwen/hm.nix b/reference/users/youwen/hm.nix index bafee16..946fe1a 100644 --- a/reference/users/youwen/hm.nix +++ b/reference/users/youwen/hm.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ config, pkgs, ... }: { imports = [ @@ -44,4 +44,10 @@ }; addKeysToAgent = "yes"; }; + + # text/html; ~/.mutt/view_attachment.sh %s html; test=test -n "$DISPLAY" + home.file.".mailcap".text = '' + text/html; ${pkgs.w3m}/bin/w3m %s; nametemplate=%s.html; needsterminal + text/html; ${pkgs.w3m}/bin/w3m -v -F -T text/html -dump %s; copiousoutput + ''; } diff --git a/reference/users/youwen/neomutt.nix b/reference/users/youwen/neomutt.nix index 6f06b10..4cf92e7 100644 --- a/reference/users/youwen/neomutt.nix +++ b/reference/users/youwen/neomutt.nix @@ -22,6 +22,12 @@ in macro index,pager \cs " ${pkgs.urlscan}/bin/urlscan" "call urlscan to extract URLs out of a message" macro attach,compose \cs " ${pkgs.urlscan}/bin/urlscan" "call urlscan to extract URLs out of a message" + + auto_view text/html + alternative_order text/enriched text/plain text/html text + + bind index,pager V noop ## Unbinds V from version + macro index,pager V "html" ''; }; @@ -99,4 +105,10 @@ in --client-secret "''$(cat ${secrets.youwen_ucsb_client_secret.path})" '') ]; + + # text/html; ~/.mutt/view_attachment.sh %s html; test=test -n "$DISPLAY" + home.file.".mailcap".text = '' + text/html; ${pkgs.w3m}/bin/w3m %s; nametemplate=%s.html; needsterminal + text/html; ${pkgs.w3m}/bin/w3m -v -F -T text/html -dump %s; copiousoutput + ''; }