update dotfiles
[~madcoder/dotfiles.git] / config / mutt / binds
1 macro generic,index       <space> c?\t                     "list mailboxes"
2 macro generic,index,pager <f1> c=\n                        "goto ="
3 macro generic,index,pager <f2> c?\t/\\.Sab\n\n             "goto sab's mbox"
4 macro generic,index,pager <f3> c\Cuimaps://madcoder@imap.intersec.com/\nu "open intersec imap"
5 macro generic,index,pager <f4> c=debian\n                  "goto =debian"
6 macro generic,index,pager <f5> ":source ~/.muttrc\n"       "Reload the muttrc"
7 macro generic,index,pager <f9> ":toggle sidebar_visible\n" "Toggle sidebar"
8
9 macro index \' \
10     "<tag-pattern>(~N|~O)<enter><tag-prefix-cond><clear-flag>N<clear-flag>O<end-cond><untag-pattern>~T<enter>" \
11     "set all mails as read"
12 macro index \e= "<delete-pattern>~=<enter>"  "delete duplicates"
13
14 macro index,pager L   "<limit>~(~p|~P)\n"
15 bind  index,pager \ek sidebar-prev
16 bind  index,pager \ej sidebar-next
17 bind  index,pager \el sidebar-open
18 bind  index <return> display-message
19
20 bind  index <right>  collapse-thread
21 bind  index <left>   collapse-thread
22
23 bind  pager,index \er      read-subthread
24 bind  pager,index \eR      read-thread
25 bind  pager,index \ed      delete-subthread
26 bind  pager,index \eD      delete-thread
27 bind  pager,index \eu      undelete-subthread
28 bind  pager,index \eU      undelete-thread
29
30 bind  pager,index \Cu      previous-page
31 bind  pager,index \Cy      previous-line
32 bind  pager,index \Ce      next-line
33 bind  pager,index \Cd      next-page
34 bind  pager       <down>   next-line
35 bind  pager       <up>     previous-line
36
37 macro index  "\eZ" \
38   '<tag-pattern>~P(~N|~O)<enter><tag-prefix-cond><clear-flag>N<clear-flag>O<untag-pattern>~P<enter><end-cond>' \
39   "mark messages read sent by me"
40
41 unhook *
42 folder-hook '.' "set record=^"
43 folder-hook '.' "push '\eZ<delete-pattern>~=<enter><collapse-all>'"
44 folder-hook '.' "set from='madcoder@madism.org'"
45 folder-hook '.' "set envelope_from_address=$from"
46 folder-hook '.' "set signature=~/.signature"
47 folder-hook 'imaps://.*intersec.*' "set from='pierre.habouzit@intersec.com'"
48 folder-hook 'imaps://.*intersec.*' "set signature=~/.signature.d/is"
49
50 #popo vim:set syntax=muttrc et: