diff options
Diffstat (limited to 'users/tdback/modules/neomutt/default.nix')
-rw-r--r-- | users/tdback/modules/neomutt/default.nix | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/users/tdback/modules/neomutt/default.nix b/users/tdback/modules/neomutt/default.nix new file mode 100644 index 0000000..243aa6b --- /dev/null +++ b/users/tdback/modules/neomutt/default.nix @@ -0,0 +1,69 @@ +{ 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>"; + } + ]; + }; +} |