{ 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 = "=Inbox"; } { map = [ "index" "pager" ]; key = "gs"; action = "=Sent"; } { map = [ "index" "pager" ]; key = "gd"; action = "=Drafts"; } { map = [ "index" "pager" ]; key = "gt"; action = "=Trash"; } { map = [ "index" "pager" ]; key = "ga"; action = "=Archive"; } { map = [ "index" ]; key = "S"; action = "${pkgs.isync}/bin/mbsync -a"; } ]; }; }