summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-03-12 10:03:33 -0700
committerBen Sima <ben@bsima.me>2019-03-12 10:03:33 -0700
commite05f450039be9c49160a3c95de15fca630e00657 (patch)
tree9ce47510d5485415a11dc158110be6e44c848ada
parent8a7b92ed8bf86a20e008af389964ee70bace765d (diff)
Add alot with html email viewing
-rw-r--r--email.nix8
-rw-r--r--mailcap2
-rw-r--r--packages.nix1
3 files changed, 10 insertions, 1 deletions
diff --git a/email.nix b/email.nix
index b8d9e3f..da1c3e0 100644
--- a/email.nix
+++ b/email.nix
@@ -12,6 +12,7 @@ in
primary = true;
realName = "Ben Sima";
address = "ben@bsima.me";
+ alot.sendMailCommand = "${homedir}/bin/sendmail";
folders = {
inbox = "INBOX";
};
@@ -120,6 +121,13 @@ in
extraConfig = builtins.readFile ./afew.ini;
};
+ alot = {
+ enable = true;
+ extraConfig = ''
+ theme = solarized_light
+ '';
+ };
+
mbsync = {
enable = true;
};
diff --git a/mailcap b/mailcap
index a67c182..5cce027 100644
--- a/mailcap
+++ b/mailcap
@@ -1,4 +1,4 @@
-text/html; w3m -I %{charset} -T text/html; copiousoutput;
+text/html; w3m -dump -o document_charset=%{charset} '%s'; nametemplate=%s.html; copiousoutput
application/pdf; apvlv %s
image/*; feh %s
application/msword; antiword %s; copiousoutput
diff --git a/packages.nix b/packages.nix
index e2b5242..6804a72 100644
--- a/packages.nix
+++ b/packages.nix
@@ -35,6 +35,7 @@ tmux
tree
unrar
urlscan
+w3m
xterm
yank
youtube-dl