Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.9 KiB

4 years ago
4 years ago
  1. # vim: filetype=neomuttrc
  2. auto_view text/html # automatically show html (mailcap uses lynx)
  3. auto_view application/pgp-encrypted
  4. #set display_filter = "tac | sed '/\\\[-- Autoview/,+1d' | tac" # Suppress autoview messages.
  5. alternative_order text/plain text/enriched text/html
  6. bind index,pager i noop
  7. bind index,pager g noop
  8. bind index \Cf noop
  9. # General rebindings
  10. bind index j next-entry
  11. bind index k previous-entry
  12. bind attach <return> view-mailcap
  13. bind attach l view-mailcap
  14. bind editor <space> noop
  15. bind index G last-entry
  16. bind index gg first-entry
  17. bind pager,attach h exit
  18. bind pager j next-line
  19. bind pager k previous-line
  20. bind pager l view-attachments
  21. bind index D delete-message
  22. bind index U undelete-message
  23. bind index L limit
  24. bind index h noop
  25. bind index l display-message
  26. bind index,query <space> tag-entry
  27. #bind browser h goto-parent
  28. macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
  29. bind index,pager H view-raw-message
  30. bind browser l select-entry
  31. bind pager,browser gg top-page
  32. bind pager,browser G bottom-page
  33. bind index,pager,browser d half-down
  34. bind index,pager,browser u half-up
  35. bind index,pager S sync-mailbox
  36. bind index,pager R group-reply
  37. bind index \031 previous-undeleted # Mouse wheel
  38. bind index \005 next-undeleted # Mouse wheel
  39. bind pager \031 previous-line # Mouse wheel
  40. bind pager \005 next-line # Mouse wheel
  41. bind editor <Tab> complete-query
  42. #set crypt_autosign = yes
  43. #set crypt_opportunistic_encrypt = yes
  44. #set pgp_self_encrypt = yes
  45. #set pgp_default_key = 'your@gpgemailaddre.ss'
  46. macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
  47. macro index,pager U "<enter-command>set pipe_decode = yes<enter><pipe-message>urlview<enter><enter-command>set pipe_decode = no<enter>""view URLs"
  48. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  49. macro index O "<shell-escape>mw -Y<enter>" "run mw -Y to sync all mail"
  50. macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>printf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern"
  51. macro index A "<limit>all\n" "show all messages (undo limit)"
  52. # Sidebar mappings
  53. set sidebar_visible = yes
  54. set sidebar_width = 20
  55. set sidebar_short_path = yes
  56. set sidebar_next_new_wrap = yes
  57. set mail_check_stats
  58. set sidebar_format = '%D%?F? [%F]?%* %?N?%N/? %?S?%S?'
  59. bind index,pager \Ck sidebar-prev
  60. bind index,pager \Cj sidebar-next
  61. bind index,pager \Co sidebar-open
  62. bind index,pager \Cp sidebar-prev-new
  63. bind index,pager \Cn sidebar-next-new
  64. bind index,pager B sidebar-toggle-visible