aboutsummaryrefslogtreecommitdiffhomepage
path: root/mutt
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-08-29 14:32:09 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-08-29 14:32:09 +0800
commit3119a91f576b5bd080b70aa4de89f0e9ae5e48b3 (patch)
treeb641fa34983953122a48adfb4bf1f4368e8f3fef /mutt
parentf6a1e14815c951e4cde765003a8d654d28a8c948 (diff)
Update muttrc
Diffstat (limited to 'mutt')
-rw-r--r--mutt/default8
-rw-r--r--mutt/mailcap5
-rw-r--r--mutt/muttrc.topo3
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
21set markers = no # Remove '+' for long links with limited terminal width 21set markers = no # Remove '+' for long links with limited terminal width
22set index_format = "%4C %8Y %Z %(%b %d) %-15.15L (%?l?%4l&%4c?) %s" 22set index_format = "%4C %8Y %Z %(%b %d) %-15.15L (%?l?%4l&%4c?) %s"
23 23
24# Preference
25alternative_order text/plain text/enriched text/html
26# Auto convert text/html MIME type to text/plain
27auto_view text/html
28# Macro to open html with css
29macro 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风格键位绑定
26bind index <Return> sync-mailbox 33bind index <Return> sync-mailbox
@@ -51,6 +58,7 @@ bind pager \cd half-down
51bind pager \cu half-up 58bind pager \cu half-up
52bind pager \cj next-entry 59bind pager \cj next-entry
53bind pager \ck previous-entry 60bind pager \ck previous-entry
61bind pager \ch display-toggle-weed
54bind attach x view-mailcap 62bind attach x view-mailcap
55macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file" 63macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file"
56macro index <Return> ":exec sync-mailbox\n" "Sync Mailbox" 64macro 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; 1text/html; xdg-open '%s' &; test=test -n "$DISPLAY"; needsterminal;
2application/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; xdg-open /tmp/mutt/$(basename %s) & 2text/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
32macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.gmail<enter><change-folder>!<enter>' 32macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.gmail<enter><change-folder>!<enter>'
33macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.b97602041<enter><change-folder>!<enter>' 33macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.b97602041<enter><change-folder>!<enter>'
34 34
35## ACCOUNT1 35# Hooks for accounts
36folder-hook imaps://imap.gmail.com/ 'source ~/.config/mutt/muttrc.gmail' 36folder-hook imaps://imap.gmail.com/ 'source ~/.config/mutt/muttrc.gmail'
37### ACCOUNT2
38folder-hook ~/Maildir 'source ~/.config/mutt/muttrc.b97602041' 37folder-hook ~/Maildir 'source ~/.config/mutt/muttrc.b97602041'