nix-config/dots/neomutt/default.nix

70 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2024-11-10 17:54:08 -05:00
{ pkgs, ... }:
{
programs.neomutt = {
enable = true;
package = pkgs.neomutt;
vimKeys = true;
sort = "reverse-date";
checkStatsInterval = 60;
sidebar = {
enable = true;
shortPath = true;
width = 20;
};
binds = [
{
map = [ "index" "pager" ];
key = "\\Cp";
action = "sidebar-prev";
}
{
map = [ "index" "pager" ];
key = "\\Cn";
action = "sidebar-next";
}
{
map = [ "index" "pager" ];
key = "\\Cy";
action = "sidebar-open";
}
];
macros = [
{
map = [ "index" "pager" ];
key = "gi";
action = "<change-folder>=Inbox<enter>";
}
{
map = [ "index" "pager" ];
key = "gs";
action = "<change-folder>=Sent<enter>";
}
{
map = [ "index" "pager" ];
key = "gd";
action = "<change-folder>=Drafts<enter>";
}
{
map = [ "index" "pager" ];
key = "gt";
action = "<change-folder>=Trash<enter>";
}
{
map = [ "index" "pager" ];
key = "ga";
action = "<change-folder>=Archive<enter>";
}
{
map = [ "index" ];
key = "S";
action = "<shell-escape>${pkgs.isync}/bin/mbsync -a<enter>";
}
];
};
}