]> git.phdru.name Git - dotfiles.git/commitdiff
.muttrc: avoid <Enter><exit>
authorOleg Broytman <phd@phdru.name>
Sun, 8 May 2016 17:12:05 +0000 (20:12 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 8 May 2016 17:12:05 +0000 (20:12 +0300)
<Enter><exit> trick doesn't work in empty folders.

.muttrc

diff --git a/.muttrc b/.muttrc
index e11931545c155ed5b41849c46c6e63239eb44c41..fad17a91daef8f095222b552d718764b8702fa29 100644 (file)
--- a/.muttrc
+++ b/.muttrc
@@ -283,8 +283,11 @@ bind index,pager <Esc>S decode-save
 # Macros
 #
 
-macro index,pager C \
-   <Enter><exit><Home><change-folder><Enter> \
+macro index C \
+   <Home><change-folder><Enter> \
+   "Go to the first folder with unread messages"
+macro pager C \
+   <exit><Home><change-folder><Enter> \
    "Go to the first folder with unread messages"
 
 macro index,pager S \
@@ -298,31 +301,52 @@ macro index,pager <Esc>H \
    ":unauto_view text/html<Enter>" \
    "Don't show HTML attachments"
 
-macro index,pager <Esc>s \
-   "<Enter><exit><pipe-message>spamassassin -d | ~/mail/bin/spamcop.py<Enter><next-undeleted>" \
+macro index <Esc>s \
+   "<pipe-message>spamassassin -d | ~/mail/bin/spamcop.py<Enter><next-undeleted>" \
+   "Send spam to SpamCop"
+macro pager <Esc>s \
+   "<exit><pipe-message>spamassassin -d | ~/mail/bin/spamcop.py<Enter><next-undeleted>" \
    "Send spam to SpamCop"
-macro index,pager <Esc>z \
-   "<Enter><exit>:set editor='vim -s ~/mail/misc/spamcop.vim'<Enter><reply>:set editor=vim.sh<Enter><exit>n" \
+macro index <Esc>z \
+   ":set editor='vim -s ~/mail/misc/spamcop.vim'<Enter><reply>:set editor=vim.sh<Enter><exit>n" \
+   "Process message from SpamCop"
+macro pager <Esc>z \
+   "<exit>:set editor='vim -s ~/mail/misc/spamcop.vim'<Enter><reply>:set editor=vim.sh<Enter><exit>n" \
    "Process message from SpamCop"
 
-macro index,pager H \
-   <Enter><exit><Home><change-folder>!<Enter> \
+macro index H \
+   <Home><change-folder>!<Enter> \
+   "Go to inbox"
+macro pager H \
+   <exit><Home><change-folder>!<Enter> \
    "Go to inbox"
-macro index,pager M \
-   <Enter><exit><Home><change-folder>=sent-mail<Enter> \
+macro index M \
+   <Home><change-folder>=sent-mail<Enter> \
+   "Go to sent-mail"
+macro pager M \
+   <exit><Home><change-folder>=sent-mail<Enter> \
    "Go to sent-mail"
 
 # Go to python mailbox
-macro index,pager Y \
-   <Enter><exit><Home><change-folder>=lists/python<Enter> \
+macro index Y \
+   <Home><change-folder>=lists/python<Enter> \
+   "Go to python"
+macro pager Y \
+   <exit><Home><change-folder>=lists/python<Enter> \
    "Go to python"
 
 # Go to STCnet "Atlas"/STM mailboxes
-macro index,pager A \
-   <Enter><exit><Home><change-folder>=stcnet<Enter> \
+macro index A \
+   <Home><change-folder>=stcnet<Enter> \
    "Go to stcnet inbox"
-macro index,pager <Esc>a \
-   <Enter><exit><Home><change-folder>=sent-stcnet<Enter> \
+macro pager A \
+   <exit><Home><change-folder>=stcnet<Enter> \
+   "Go to stcnet inbox"
+macro index <Esc>a \
+   <Home><change-folder>=sent-stcnet<Enter> \
+   "Go to sent-stcnet"
+macro pager <Esc>a \
+   <exit><Home><change-folder>=sent-stcnet<Enter> \
    "Go to sent-stcnet"
 
 # Recode base64 to 8bit, html to plain text, mustdie-1251 to koi8-r, etc.