]> git.phdru.name Git - dotfiles.git/blobdiff - .muttrc
.muttrc: Run `(un)auto_view text/html` in the attachment screen
[dotfiles.git] / .muttrc
diff --git a/.muttrc b/.muttrc
index c3edd920355c50f9aec7f508d4b2992ac9994334..499a9e9a0496775dd6aab943f00a8cfbc20dc599 100644 (file)
--- a/.muttrc
+++ b/.muttrc
@@ -299,6 +299,8 @@ bind index,pager <Esc>S decode-save
 # Macros
 #
 
+# KP_Enter -> Enter
+#macro generic,pager,editor <F79> <Enter>
 # KP_Home -> Home
 macro generic,pager,editor <F84> <Home>
 # KP_Up -> Up
@@ -327,10 +329,10 @@ macro index,pager S \
    <save-message>!<Enter> \
    "Move current message to inbox"
 
-macro index,pager <Esc>h \
+macro index,pager,attach <Esc>h \
    ":auto_view text/html<Enter>" \
    "View HTML attachments"
-macro index,pager <Esc>H \
+macro index,pager,attach <Esc>H \
    ":unauto_view text/html<Enter>" \
    "Don't show HTML attachments"
 
@@ -360,6 +362,9 @@ macro pager,attach M \
    <exit><Home><change-folder>=sent-mail<Enter> \
    "Go to sent-mail"
 
+macro attach V "<pipe-message>webstdin<Enter>" \
+   "View html attachment in a web browser"
+
 # Go to python mailbox
 macro index Y \
    <Home><change-folder>=lists/python<Enter> \