about summary refs log tree commit diff
path: root/home/profiles/messaging/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/profiles/messaging/default.nix')
-rw-r--r--home/profiles/messaging/default.nix47
1 files changed, 45 insertions, 2 deletions
diff --git a/home/profiles/messaging/default.nix b/home/profiles/messaging/default.nix
index ecc441d..27087b1 100644
--- a/home/profiles/messaging/default.nix
+++ b/home/profiles/messaging/default.nix
@@ -111,8 +111,51 @@ in
         edit_headers = "yes";
       };
 
-      # binds = mapKeys [];
-      # macros = mapKeys [];
+      binds = mapKeys [
+        "index,pager i noop"
+        "index,pager g noop"
+        "index \\Cf noop"
+        "index j next-entry"
+        "index k previous-entry"
+        "attach <return> view-mailcap"
+        "attach l view-mailcap"
+        "editor <space> noop"
+        "index G last-entry"
+        "index gg first-entry"
+        "pager,attach h exit"
+        "pager j next-line"
+        "pager k previous-line"
+        "pager l view-attachments"
+        "index D delete-message"
+        "index U undelete-message"
+        "index L limit"
+        "index h noop"
+        "index l display-message"
+        "index,query <space> tag-entry"
+        "browser h goto-parent"
+        "index,pager H view-raw-message"
+        "browser l select-entry"
+        "pager,browser gg top-page"
+        "pager,browser G bottom-page"
+        "index,pager,browser d half-down"
+        "index,pager,browser u half-up"
+        "index,pager S sync-mailbox"
+        "index,pager R group-reply"
+        "index \\031 previous-undeleted" # Mouse wheel
+        "index \\005 next-undeleted" # Mouse wheel
+        "pager \\031 previous-line" # Mouse wheel
+        "pager \\005 next-line" # Mouse wheel
+        "editor <Tab> complete-query"
+
+        # Pager stuff
+        "index,pager B sidebar-toggle-visible"
+      ];
+      macros = mapKeys [
+        "index,pager \\Ck <sidebar-prev><sidebar-open>"
+        "index,pager \\Cj <sidebar-next><sidebar-open>"
+        "index,pager \\Cp <sidebar-prev-new><sidebar-open>"
+        "index,pager \\Cn <sidebar-next-new><sidebar-open>"
+      ];
 
       extraConfig = ''
         # Default index colors: