commit e84250e4365be1b53bb947dd506452f75ad24384
parent 8d8945ac03c4bc479053404c3d01cde7c5a921f5
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Tue, 25 Mar 2014 22:17:23 +0100
more mutt colors to separate file
Diffstat:
mutt/colors | | | 56 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
mutt/muttrc | | | 60 | +++--------------------------------------------------------- |
2 files changed, 59 insertions(+), 57 deletions(-)
diff --git a/mutt/colors b/mutt/colors
@@ -0,0 +1,56 @@
+# inbox colors
+color index red black ~G # encrypted
+color index cyan black !(~p) # not adressed to me personally
+color index yellow black ~P # message from me
+color index black blue ~E # expired, no one uses that
+color index black blue ~S # superseded, no one uses that
+color index green black ~Q # have been replied to
+color index black yellow ~F # flagged
+color index white cyan ~N # new
+color index white cyan ~O # old
+color index white green ~T # tagged
+
+# other colors, from https://gist.github.com/jstorimer/281158
+color attachment brightmagenta black
+color error brightwhite red # errors yell at you in red
+color hdrdefault red black # headers
+color indicator default magenta # currently selected message
+color markers brightcyan black # the + for wrapped pager lines
+color message brightcyan black # informational messages, not mail
+color quoted green black # quoted text
+color search brightgreen black # hilite search patterns in the pager
+color signature red black # signature (after "-- ") is red
+color status brightyellow blue # status bar is yellow *on blue*
+color tilde blue black # ~'s after message body
+color tree red default # thread tree in index menu is magenta
+color normal brightwhite black # message
+color signature green default
+color underline yellow black
+color tilde green default
+mono tilde bold
+color header cyan black ^(From|Subject): # Important headers
+
+# color url and email addresses
+color body magenta default "(ftp|http)://[-a-z0-9_.+!*',;/?:@&=%~#]+"
+color body red default [-a-z0-9_.]+@[-a-z0-9_.]+
+mono body underline "(ftp|http)://[-a-z0-9_.+!*',;/?:@&=%~#]+"
+mono body underline [-a-z0-9_.]+@[-a-z0-9_.]+
+
+# coloring quoted text - coloring the first 7 levels:
+color quoted cyan black
+color quoted1 yellow black
+color quoted2 red black
+color quoted3 green black
+color quoted4 cyan black
+color quoted5 yellow black
+color quoted6 red black
+color quoted7 green black
+
+# colorize smileys: :-) ;-) :-/ :-(
+color body yellow black "[;:]-[)/(|]"
+color body yellow black "[;:][)/(|]"
+color body green black "[[:alpha:]]\+://[^ ]*"
+
+# colors for deleted mail
+color index brightblack black ~D # deleted
+color index black red !~(!~D) # deleted THREADS
diff --git a/mutt/muttrc b/mutt/muttrc
@@ -71,59 +71,7 @@ set pgp_replyencrypt
message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp"
# == Colors ==
-#
-# inbox colors
-color index red black ~G # encrypted
-color index cyan black !(~p) # not adressed to me personally
-color index yellow black ~P # message from me
-color index black blue ~E # expired, no one uses that
-color index black blue ~S # superseded, no one uses that
-color index green black ~Q # have been replied to
-color index black yellow ~F # flagged
-color index white cyan ~N # new
-color index white cyan ~O # old
-color index white green ~T # tagged
-
-# other colors, from https://gist.github.com/jstorimer/281158
-color attachment brightmagenta black
-color error brightwhite red # errors yell at you in red
-color hdrdefault red black # headers
-color indicator default magenta # currently selected message
-color markers brightcyan black # the + for wrapped pager lines
-color message brightcyan black # informational messages, not mail
-color quoted green black # quoted text
-color search brightgreen black # hilite search patterns in the pager
-color signature red black # signature (after "-- ") is red
-color status brightyellow blue # status bar is yellow *on blue*
-color tilde blue black # ~'s after message body
-color tree red default # thread tree in index menu is magenta
-color normal brightwhite black # message
-color signature green default
-color underline yellow black
-color tilde green default
-mono tilde bold
-color header cyan black ^(From|Subject): # Important headers
-
-# color url and email addresses
-color body magenta default "(ftp|http)://[-a-z0-9_.+!*',;/?:@&=%~#]+"
-color body red default [-a-z0-9_.]+@[-a-z0-9_.]+
-mono body underline "(ftp|http)://[-a-z0-9_.+!*',;/?:@&=%~#]+"
-mono body underline [-a-z0-9_.]+@[-a-z0-9_.]+
-
-# coloring quoted text - coloring the first 7 levels:
-color quoted cyan black
-color quoted1 yellow black
-color quoted2 red black
-color quoted3 green black
-color quoted4 cyan black
-color quoted5 yellow black
-color quoted6 red black
-color quoted7 green black
-
-# colorize smileys: :-) ;-) :-/ :-(
-color body yellow black "[;:]-[)/(|]"
-color body yellow black "[;:][)/(|]"
-color body green black "[[:alpha:]]\+://[^ ]*"
+source ~/.mutt/colors
# == Bindings ==
@@ -200,15 +148,13 @@ set noabort_unmodified # because of this use of 'R'
# <enter-command>set postponed='=inbox'<enter>" \
# "recall"
-
-
# keep old mail around to complete threads
set maildir_trash
-color index brightblack black ~D # deleted
-color index black red !~(!~D) # deleted THREADS
+# reset default limit
macro index B "l~(! ~D)<enter>"
folder-hook . push 'B=*'
+# automatically view html mail using mailcap
auto_view text/html