From c04fdf9340a6dd37d6ad69f9c8caa5b1ca35cab6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 5 Jun 2014 18:27:27 -0300 Subject: More cleanup and organization --- muttrc.dot.link | 83 +++++++++++++++------------------------------------------ 1 file changed, 22 insertions(+), 61 deletions(-) (limited to 'muttrc.dot.link') diff --git a/muttrc.dot.link b/muttrc.dot.link index 240bf5f..b850c1e 100644 --- a/muttrc.dot.link +++ b/muttrc.dot.link @@ -71,6 +71,8 @@ set tilde = no # --------- set editor = "vim -X" set postponed = "~/temp/mutt/postponed" +macro compose q " " "Postpone message" +macro compose x " n" "Discard message" # -------- # Replying @@ -103,12 +105,15 @@ set envelope_from = yes set alias_file = "~/.custom/mutt/aliases" source "~/.custom/mutt/aliases" -# ------------------ +# ---------------------------------------- # Attached documents -# ------------------ +# http://wiki.mutt.org/?MuttFaq/Attachment +# ---------------------------------------- set attach_format = "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] " set attach_sep = "\n" set attach_split = yes +macro attach W ~/load/ +macro attach E ~/load/ # ---- # MIME @@ -153,42 +158,6 @@ set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secr set pgp_getkeys_command="" set pgp_good_sign="^gpg: Assinatura correta de" -# --------------------------- -# Patch: pgp-menu-traditional -# --------------------------- -# * introduce pgp_replyinline boolean (default no) -# When set, this option will (attempt) to reply to -# inline (traditional) messages as inline (traditional). -# * introduce pgp_autoinline boolean (default no) -# When set, this option will (attempt) to send messages as inline (traditional). -# * change pgp_create_traditional to a synonym for pgp_autoinline -# Warning: this changes pgp_create_traditional from a quad variable to a boolean. -# * introduce pgp_mime_ask quad option (default no) - -# -------------------------- -# Patch: multiple-crypt-hook -# -------------------------- -# Allows multiple key-ids for the same pattern With this patch, you can have -# multiple crypt-hook instances with the same pattern (recipient). This allows -# one to specify multiple key-ids for a particular pattern (recipient). - -# ------------------------- -# Patch: confirm-crypt-hook -# ------------------------- -# This patch adds the variable crypt_confirmhook (default yes), -# to allow you to skip the "Use keyID" prompt, which is frustrating -# for so many people. Typical (for me) use of crypt-hook implies -# selection of a known key (assuming no typos), so crypt_confirmhook -# can be unset if you know your crypt-hooks are valid; you won't be -# prompted for confirmation anymore. You should verify all your -# crypt-hooks are correct before unsetting this variable. -# -# set crypt_confirmhook = no -# pgp-hook mailing@lists.org listname -# pgp-hook mailing@lists.org KEYID_1 -# pgp-hook mailing@lists.org KEYID_2 -# - # --------- # Mailboxes # --------- @@ -201,13 +170,18 @@ mailboxes `echo $HOME/mail/Sync/*/*` macro pager z "unset wait_key\n!clear ; fetchmail || [ $? -eq 1 ]\n=INBOX/\n" "Fetch new mail" macro index z "unset wait_key\n!clear ; fetchmail || [ $? -eq 1 ]\n=INBOX/\n" "Fetch new mail" -# ---------- +# ---------------------------------------- # Navigation -# ---------- +# http://blog.jwcxz.com/?p=810 +# http://rc.vc/files/mutt/keybindings.html +# ---------------------------------------- +bind index P collapse-all macro index n "" macro pager n "" +macro index,pager M "T \n;WN^t \n" "Mark all messages read" macro index,pager c "?~/mail" "Change folder" macro index,pager y "?1\n\n" "Back to INBOX" +macro index,pager \' "~F" "Jump to next important message" # ------------- # Ignore fields @@ -278,13 +252,17 @@ macro pager X "unset wait_key\nbogofilter -MNs\nunset wait_key\nbogofilter -n\n" "Learn as ham and save" macro pager H "unset wait_key\nbogofilter -n\n" "Learn as ham and save" +# ---------------- # Disable printing +# ---------------- bind index p noop bind pager p noop bind pager P noop +# ---------------------------------------------------------------- # Schleuder config # see http://schleuder2.nadir.org/contrib/schleuder-with-mutt.html +# ---------------------------------------------------------------- #color body red default "^From: .*" #color body red default "^To: .*" #color body red default "^Cc: .*" @@ -296,7 +274,9 @@ bind pager P noop #color body red default "^Resent-to: .*" #color body brightred default "^Note: .*" +# ----------------------------------- # Schleuder config, solarized version +# ----------------------------------- color body red color234 "^From: .*" color body red color234 "^To: .*" color body red color234 "^Cc: .*" @@ -308,30 +288,11 @@ color body red color234 "^Sig: Good signature.*" color body red color234 "^Resent-to: .*" color body brightred color234 "^Note: .*" -# Macro for jumping to the next important message -macro index,pager \' "~F" "Jump to next important message" - +# ------- # Sidebar +# ------- source "~/.mutt/sidebar" -# http://wiki.mutt.org/?MuttFaq/Attachment -macro attach W ~/load/ -macro attach E ~/load/ - -# Mark messages as read -# http://blog.jwcxz.com/?p=810 -# http://rc.vc/files/mutt/keybindings.html -#macro index m "T~N;WNT~O;WO\CT~T" "mark all messages read" -macro index M "T \n;WN^t \n" "Mark all messages read" -macro pager M "T \n;WN^t \n" "Mark all messages read" - -# Compose macros -macro compose q " " "Postpone message" -macro compose x " n" "Discard message" - -# Collapse -bind index P collapse-all - #----------------------------------------------------- # Custom configuration # -- cgit v1.2.3