diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-08-29 14:32:09 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-08-29 14:32:09 +0800 |
commit | 3119a91f576b5bd080b70aa4de89f0e9ae5e48b3 (patch) | |
tree | b641fa34983953122a48adfb4bf1f4368e8f3fef /mutt | |
parent | f6a1e14815c951e4cde765003a8d654d28a8c948 (diff) |
Update muttrc
Diffstat (limited to 'mutt')
-rw-r--r-- | mutt/default | 8 | ||||
-rw-r--r-- | mutt/mailcap | 5 | ||||
-rw-r--r-- | mutt/muttrc.topo | 3 |
3 files changed, 11 insertions, 5 deletions
diff --git a/mutt/default b/mutt/default index 17a69cd..23367a6 100644 --- a/mutt/default +++ b/mutt/default | |||
@@ -21,6 +21,13 @@ set pager_index_lines = 5 | |||
21 | set markers = no # Remove '+' for long links with limited terminal width | 21 | set markers = no # Remove '+' for long links with limited terminal width |
22 | set index_format = "%4C %8Y %Z %(%b %d) %-15.15L (%?l?%4l&%4c?) %s" | 22 | set index_format = "%4C %8Y %Z %(%b %d) %-15.15L (%?l?%4l&%4c?) %s" |
23 | 23 | ||
24 | # Preference | ||
25 | alternative_order text/plain text/enriched text/html | ||
26 | # Auto convert text/html MIME type to text/plain | ||
27 | auto_view text/html | ||
28 | # Macro to open html with css | ||
29 | macro index,pager h "<pipe-message>htmail-decode<return>" "render html mail using htmail-view" | ||
30 | |||
24 | # Vim-style key binding, \c means Ctrl | 31 | # Vim-style key binding, \c means Ctrl |
25 | # ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim风格键位绑定 | 32 | # ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim风格键位绑定 |
26 | bind index <Return> sync-mailbox | 33 | bind index <Return> sync-mailbox |
@@ -51,6 +58,7 @@ bind pager \cd half-down | |||
51 | bind pager \cu half-up | 58 | bind pager \cu half-up |
52 | bind pager \cj next-entry | 59 | bind pager \cj next-entry |
53 | bind pager \ck previous-entry | 60 | bind pager \ck previous-entry |
61 | bind pager \ch display-toggle-weed | ||
54 | bind attach x view-mailcap | 62 | bind attach x view-mailcap |
55 | macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file" | 63 | macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file" |
56 | macro index <Return> ":exec sync-mailbox\n" "Sync Mailbox" | 64 | macro index <Return> ":exec sync-mailbox\n" "Sync Mailbox" |
diff --git a/mutt/mailcap b/mutt/mailcap index 17e4d0b..d52d2ae 100644 --- a/mutt/mailcap +++ b/mutt/mailcap | |||
@@ -1,3 +1,2 @@ | |||
1 | #text/html; xdg-open '%s' &; test=test -n "$DISPLAY"; needsterminal; | 1 | text/html; xdg-open '%s' &; test=test -n "$DISPLAY"; needsterminal; |
2 | application/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; xdg-open /tmp/mutt/$(basename %s) & | 2 | text/html; w3m -I %{charset} -T text/html; copiousoutput; |
3 | #text/html; lynx -dump %s; nametemplate=%s.html; copiousoutput; | ||
diff --git a/mutt/muttrc.topo b/mutt/muttrc.topo index d0da89c..9f6d6ab 100644 --- a/mutt/muttrc.topo +++ b/mutt/muttrc.topo | |||
@@ -32,7 +32,6 @@ macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/mutt/muttr | |||
32 | macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.gmail<enter><change-folder>!<enter>' | 32 | macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.gmail<enter><change-folder>!<enter>' |
33 | macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.b97602041<enter><change-folder>!<enter>' | 33 | macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.b97602041<enter><change-folder>!<enter>' |
34 | 34 | ||
35 | ## ACCOUNT1 | 35 | # Hooks for accounts |
36 | folder-hook imaps://imap.gmail.com/ 'source ~/.config/mutt/muttrc.gmail' | 36 | folder-hook imaps://imap.gmail.com/ 'source ~/.config/mutt/muttrc.gmail' |
37 | ### ACCOUNT2 | ||
38 | folder-hook ~/Maildir 'source ~/.config/mutt/muttrc.b97602041' | 37 | folder-hook ~/Maildir 'source ~/.config/mutt/muttrc.b97602041' |