From 274409cfcf237b639254157531bf132c5e3293f5 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 7 Nov 2022 09:51:23 +0800 Subject: Improve muttrc --- mutt/default | 5 +++-- mutt/mailcap | 2 +- mutt/muttrc.topo | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mutt/default b/mutt/default index 6de9eda..d233687 100644 --- a/mutt/default +++ b/mutt/default @@ -1,5 +1,5 @@ # Edit rc file and source it. This is the most important thing -macro index \cv ":set wait_key=no!vim ~/.config/mutt/muttrc:source ~/.config/mutt/muttrc:set wait_key=yes" +macro index \cv "!vim ~/.config/mutt/muttrc:source ~/.config/mutt/muttrc" # Connection options set ssl_force_tls = yes @@ -50,6 +50,8 @@ auto_view text/html macro pager h "v/htmlxq" "Open html file" # Vim-style key binding, \c means Ctrl +macro index c '+' +macro index q '?' bind index o sort-reverse bind index O sort-mailbox bind index E edit-type @@ -86,7 +88,6 @@ macro index d '' 'Delete' macro index s '' 'Saved' macro index W '' 'Clear flag' macro index w '' 'Set flag' -macro index q 'c?' macro pager x ':set my_keep_lines1 = $my_keep_lines2:set my_keep_lines2 = $pager_index_lines:set pager_index_lines = $my_keep_lines1' macro pager U "\ :set my_tmp_pipe_decode=\$pipe_decode\n\ diff --git a/mutt/mailcap b/mutt/mailcap index ab0c00c..e8760ee 100644 --- a/mutt/mailcap +++ b/mutt/mailcap @@ -1,4 +1,4 @@ -text/html; firefox '%s' &; test=test -n "$DISPLAY"; needsterminal; +text/html; firefox '%s' &>/dev/null &; test=test -n "$DISPLAY"; needsterminal; text/html; w3m -I %{charset} -T text/html; copiousoutput; text/plain; less -N %s; copiousoutput; application/json; jq . %s | less -N; copiousoutput; diff --git a/mutt/muttrc.topo b/mutt/muttrc.topo index 69c5bbf..55dab55 100644 --- a/mutt/muttrc.topo +++ b/mutt/muttrc.topo @@ -67,3 +67,4 @@ macro index,pager gd "+DeltaChat" "Switch macro index,pager gD "+Drafts" "Switch to Drafts folder" macro index,pager gt "+Trash" "Switch to Trash folder" macro index,pager gl "+login" "Switch to INBOX folder" +macro index,pager ga "+arch-general" "Switch to INBOX folder" -- cgit v1.2.3-70-g09d2