diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-02 21:59:45 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-02 21:59:45 +0800 |
| commit | a75633b75781237e4376c8cae136cd98d714ebab (patch) | |
| tree | 88e0562a6708d13759a4928893fdacf840bb48e8 | |
| parent | 0399d98fa8519a72d66d323c7f1db9042ed6580f (diff) | |
update
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | misc/tmux.conf | 3 | ||||
| -rw-r--r-- | muttrc | 30 |
3 files changed, 24 insertions, 12 deletions
| @@ -81,3 +81,6 @@ xkb: | |||
| 81 | #! /bin/env bash | 81 | #! /bin/env bash |
| 82 | setxkbmap -option ctrl:nocaps 2>/dev/null | 82 | setxkbmap -option ctrl:nocaps 2>/dev/null |
| 83 | EOF | 83 | EOF |
| 84 | |||
| 85 | urlview: | ||
| 86 | ln -sf `pwd`/misc/urlview ~/.urlview | ||
diff --git a/misc/tmux.conf b/misc/tmux.conf index cbd88e3..494dcd1 100644 --- a/misc/tmux.conf +++ b/misc/tmux.conf | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | set -g default-terminal "screen-256color" | ||
| 2 | |||
| 1 | unbind C-b | 3 | unbind C-b |
| 2 | set-option -g prefix C-g | 4 | set-option -g prefix C-g |
| 5 | bind-key C-g send-prefix | ||
| 3 | 6 | ||
| 4 | new-session # Start a new session if none available | 7 | new-session # Start a new session if none available |
| 5 | bind C-q select-layout even-horizontal | 8 | bind C-q select-layout even-horizontal |
| @@ -1,7 +1,7 @@ | |||
| 1 | set folder = "imaps://pham@mail.topo.tw:993" | 1 | set folder = "imaps://pham@mail.topo.tw:993/" |
| 2 | set imap_pass = `pass pham@topo.tw` | 2 | set imap_pass = `pass pham@topo.tw` |
| 3 | set message_cachedir = "~/.mail" | 3 | set header_cache = "~/.cache/mutt" |
| 4 | set header_cache = "~/.mail" | 4 | set message_cachedir = "~/.cache/mutt" |
| 5 | 5 | ||
| 6 | set smtp_url = "smtp://pham@mail.topo.tw:25" | 6 | set smtp_url = "smtp://pham@mail.topo.tw:25" |
| 7 | set smtp_pass = "$imap_pass" | 7 | set smtp_pass = "$imap_pass" |
| @@ -30,10 +30,12 @@ set charset = "utf-8" | |||
| 30 | set send_charset = "us-ascii:utf-8" | 30 | set send_charset = "us-ascii:utf-8" |
| 31 | set header = no | 31 | set header = no |
| 32 | set pager_stop | 32 | set pager_stop |
| 33 | set sleep_time=0 # When changing folder | 33 | set sleep_time = 0 # When changing folder |
| 34 | set timeout = 10 | 34 | set timeout = 10 |
| 35 | set quit = ask-no | 35 | set quit = ask-no |
| 36 | set sort = threads | 36 | set sort = threads |
| 37 | set pager_index_lines = 5 | ||
| 38 | set markers = no # Remove '+' for long links with multiple lines | ||
| 37 | 39 | ||
| 38 | # Vim-style key binding, \c means Ctrl | 40 | # Vim-style key binding, \c means Ctrl |
| 39 | # ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim%E9%A3%8E%E6%A0%BC%E9%94%AE%E4%BD%8D%E7%BB%91%E5%AE%9A | 41 | # ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim%E9%A3%8E%E6%A0%BC%E9%94%AE%E4%BD%8D%E7%BB%91%E5%AE%9A |
| @@ -48,12 +50,14 @@ bind pager \cd half-down | |||
| 48 | bind pager \cu half-up | 50 | bind pager \cu half-up |
| 49 | bind pager \cj next-entry | 51 | bind pager \cj next-entry |
| 50 | bind pager \ck previous-entry | 52 | bind pager \ck previous-entry |
| 51 | bind index g noop | ||
| 52 | bind index gg first-entry | ||
| 53 | #bind index l select-entry | ||
| 54 | bind index <Return> sync-mailbox | 53 | bind index <Return> sync-mailbox |
| 54 | bind index q browse-mailboxes | ||
| 55 | bind index \cl limit | 55 | bind index \cl limit |
| 56 | bind index G last-entry | 56 | bind index \cj next-entry |
| 57 | bind index \ck previous-entry | ||
| 58 | bind index,browser G last-entry | ||
| 59 | bind index,browser g noop | ||
| 60 | bind index,browser gg first-entry | ||
| 57 | bind index R group-reply | 61 | bind index R group-reply |
| 58 | bind index \cf next-page | 62 | bind index \cf next-page |
| 59 | bind index \cb previous-page | 63 | bind index \cb previous-page |
| @@ -63,11 +67,13 @@ bind index } bottom-page | |||
| 63 | bind index x tag-entry | 67 | bind index x tag-entry |
| 64 | bind attach x view-mailcap | 68 | bind attach x view-mailcap |
| 65 | macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file" | 69 | macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file" |
| 66 | macro index <Return> ":exec sync-mailbox sidebar-open\n" "Sync Mailbox" | 70 | macro index <Return> ":exec sync-mailbox\n" "Sync Mailbox" |
| 67 | 71 | ||
| 68 | # Sidebar | 72 | # Sidebar |
| 69 | mailboxes =INBOX =mbox =pay =Sent =Trash =Drafts =talk-tw =service =keep | 73 | mailboxes =INBOX =mbox "+---------- Watch ----------" =pay =osm =keep "+-------- Processed --------" =Sent =Trash =Drafts |
| 74 | set mail_check = 120 | ||
| 70 | set mail_check_stats | 75 | set mail_check_stats |
| 76 | set imap_check_subscribed | ||
| 71 | set sidebar_visible = yes | 77 | set sidebar_visible = yes |
| 72 | set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S' | 78 | set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S' |
| 73 | set sidebar_short_path = yes | 79 | set sidebar_short_path = yes |
| @@ -78,7 +84,7 @@ bind index,pager \Co sidebar-open | |||
| 78 | bind index,pager <F5> sidebar-prev-new | 84 | bind index,pager <F5> sidebar-prev-new |
| 79 | bind index,pager <F6> sidebar-next-new | 85 | bind index,pager <F6> sidebar-next-new |
| 80 | color indicator cyan black | 86 | color indicator cyan black |
| 81 | color sidebar_highlight black color8 | 87 | color sidebar_highlight white color8 |
| 82 | color sidebar_divider color8 black | 88 | color sidebar_divider color8 black |
| 83 | color sidebar_flagged red black | 89 | color sidebar_flagged red black |
| 84 | color sidebar_new green black | 90 | color sidebar_new green black |
| @@ -117,7 +123,7 @@ color index red black "~F~p" # | |||
| 117 | color index red black "~N~F" # new flagged messages | 123 | color index red black "~N~F" # new flagged messages |
| 118 | color index red black "~N~F~p" # new flagged messages to me | 124 | color index red black "~N~F~p" # new flagged messages to me |
| 119 | color index red black "~U~F~p" # new flagged messages to me | 125 | color index red black "~U~F~p" # new flagged messages to me |
| 120 | color index white brightmagenta "~D" # deleted messages | 126 | color index black brightmagenta "~D" # deleted messages |
| 121 | color index white black "~v~(!~N!~O)" # collapsed thread with no unread | 127 | color index white black "~v~(!~N!~O)" # collapsed thread with no unread |
| 122 | color index magenta black "~v~(~N|~O)" # collapsed thread with some unread | 128 | color index magenta black "~v~(~N|~O)" # collapsed thread with some unread |
| 123 | color index magenta black "~N~v~(~N)" # collapsed thread with unread parent | 129 | color index magenta black "~N~v~(~N)" # collapsed thread with unread parent |