diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-04-07 10:45:56 +0000 |
---|---|---|
committer | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-04-07 10:45:56 +0000 |
commit | c8ad47eabefc3ff9d545227e2d01eeaac876347d (patch) | |
tree | bec2f8a8f21e0444f72d496829b93d85a10d1823 /.config | |
parent | 4bea5f472cc649da5fa4ef4dc7b719d75b9f2d57 (diff) | |
download | dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.tar dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.tar.gz dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.tar.bz2 dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.tar.lz dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.tar.xz dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.tar.zst dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.zip |
Add mutt/neomutt config
Diffstat (limited to '.config')
-rw-r--r-- | .config/mutt/dracula.muttrc | 61 | ||||
-rw-r--r-- | .config/mutt/mailcap | 3 | ||||
-rw-r--r-- | .config/mutt/muttrc | 101 | ||||
-rw-r--r-- | .config/mutt/vim-keys.rc | 39 | ||||
-rw-r--r-- | .config/newsboat/config | 2 |
5 files changed, 206 insertions, 0 deletions
diff --git a/.config/mutt/dracula.muttrc b/.config/mutt/dracula.muttrc new file mode 100644 index 0000000..1470084 --- /dev/null +++ b/.config/mutt/dracula.muttrc @@ -0,0 +1,61 @@ +############################################################################### +# Dracula Theme for Mutt: https://draculatheme.com/ +# +# @author Paul Townsend <paul@caprica.org> +# +# Aditional edits +# @author Luca Matei Pintilie <luca@lucamatei.com> +# vi: ft=muttrc tabstop=8 + +# general ------------ foreground ---- background ----------------------------- +color error color231 color212 +color indicator color231 color241 +color markers color210 default +color message default default +color normal default default +color prompt default default +color search color84 default +color status color141 color236 +color tilde color231 default +color tree color141 default + +# message index ------ foreground ---- background ----------------------------- +color index_author color228 default # All +color index_subject color84 default # All +color index_number color61 default # All +color index color210 default ~D # deleted messages +color index_author color210 default ~D # deleted messages +color index_subject color210 default ~D # deleted messages +color index color84 default ~F # flagged messages +color index_author color84 default ~F # flagged messages +color index_subject color84 default ~F # flagged messages +color index color117 default ~N # new messages +color index_author color117 default ~N # new messages +color index_subject color117 default ~N # new messages +color index color212 default ~Q # messages which have been replied to +color index_author color212 default ~Q # messages which have been replied to +color index_subject color212 default ~Q # messages which have been replied to +color index color215 default ~T # tagged messages +color index_author color215 default ~T # tagged messages +color index_subject color215 default ~T # tagged messages +color index color141 default ~v # messages part of a collapsed thread +color index_author color141 default ~v # messages part of a collapsed thread +color index_subject color141 default ~v # messages part of a collapsed thread + +# message headers ---- foreground ---- background ----------------------------- +color hdrdefault color117 default +color header color231 default ^Subject:.* + +# message body ------- foreground ---- background ----------------------------- +color attachment color228 default +color body color231 default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ # email addresses +color body color228 default (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+ # URLs +color body color231 default (^|[[:space:]])\\*[^[:space:]]+\\*([[:space:]]|$) # *bold* text +color body color231 default (^|[[:space:]])_[^[:space:]]+_([[:space:]]|$) # _underlined_ text +color body color231 default (^|[[:space:]])/[^[:space:]]+/([[:space:]]|$) # /italic/ text +color quoted color61 default +color quoted1 color117 default +color quoted2 color84 default +color quoted3 color215 default +color quoted4 color212 default +color signature color212 default diff --git a/.config/mutt/mailcap b/.config/mutt/mailcap new file mode 100644 index 0000000..1439e7c --- /dev/null +++ b/.config/mutt/mailcap @@ -0,0 +1,3 @@ +text/html; $BROWSER %s +text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; + diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc new file mode 100644 index 0000000..0956966 --- /dev/null +++ b/.config/mutt/muttrc @@ -0,0 +1,101 @@ +# vi: ft=muttrc +set my_mutt_folder = "$XDG_CONFIG_HOME/mutt" + +# Tells Mutt to automatically view files with these mime types +auto_view text/html +# Order to try and show multipart emails +alternative_order text/plain text/enriched text/html + +bind index R imap-fetch-mail +bind index,pager \CK sidebar-prev +bind index,pager \CJ sidebar-next +bind index,pager \CL sidebar-open +bind index,pager B sidebar-toggle-visible + +# settings +set editor="$EDITOR '+set ft=mail'" +set mailcap_path = "$my_mutt_folder/mailcap" # Mailcap file is used to tell mutt how to open different types of file +set pager_index_lines = 10 +set use_from = yes +set pager_context = 3 # show 3 lines of context +set menu_context = 5 # start scrolling 5 items before the end +set move = no # don't move messages when marking as read +set mail_check = 30 # check for new mail every 30 seconds +set imap_keepalive = 900 # 15 minutes +set sleep_time = 0 # don't sleep when idle +set wait_key = no # mutt won't ask "press key to continue" +set forward_format = "Fwd: %s" # format of subject when forwarding +set attribution = "On %d, %n wrote:" # format of quoting header +set text_flowed = yes # correct indentation for plain text +set crypt_autosign = yes +set crypt_replysign = yes +set crypt_replyencrypt = yes +set crypt_replysignencrypted = yes +set crypt_opportunistic_encrypt = no +set crypt_use_gpgme = yes +set crypt_verify_sig = yes +set pgp_use_gpg_agent = yes +set tmpdir = "$HOME/.cache/.mutt/tmp" +set charset = "utf-8" +set sort = reverse-threads +set sort_aux = last-date-received +set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*" +set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" +set send_charset = "utf-8:iso-8859-1:us-ascii" # send in utf-8 +set assumed_charset = "iso-8859-1" # if there is no character set given on incoming messages, it is probably windows +set sidebar_width = 12 +set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" +set sidebar_visible +set sidebar_short_path +set sidebar_folder_indent +set tilde # use ~ to pad mutt +set pager_stop # stop at end of message +set menu_scroll # scroll menu +set envelope_from # which from? +set edit_headers # show headers when composing +set fast_reply # skip to compose when replying +set askcc # ask for CC: +set fcc_attach # save attachments with the body +set forward_decode # decode when forwarding +set forward_quote # include message in forwards +set mime_forward # forward attachments as part of body +set reply_to # reply to Reply to: field +set reverse_name # reply as whomever it was to +set include # include message in replies +set uncollapse_jump +set sort_re # Sort by newest conversation first. +set mail_check_stats +unset sig_dashes # no dashes before sig +unset markers +unset imap_passive # Allow Mutt to open a new IMAP connection automatically. + +set spoolfile = "+INBOX" +set record = "+Sent" +set postponed = "+Drafts" + +# show spam score (from SpamAssassin only) when reading a message +spam "X-Spam-Score: ([0-9\\.]+).*" "SA: %1" +set pager_format = " %C - %[%H:%M] %.20v, %s%* %?H? [%H] ?" + +# do not show all headers, just a few +ignore * +unignore From To Cc Bcc Date Subject X-Spam-Score +# and in this order +unhdr_order * +hdr_order From: To: Cc: Bcc: Date: Subject: X-Spam-Score: + +source "$my_mutt_folder/mailboxes" +source "$my_mutt_folder/dracula.muttrc" +source "$my_mutt_folder/vim-keys.rc" + +# Holds the account credentials +# Such as the following variables +# folder +# imap_user +# imap_pass +# smtp_pass +# smtp_url +# from +# realname +source "$my_mutt_folder/account" + diff --git a/.config/mutt/vim-keys.rc b/.config/mutt/vim-keys.rc new file mode 100644 index 0000000..a4fd22a --- /dev/null +++ b/.config/mutt/vim-keys.rc @@ -0,0 +1,39 @@ +# vi: ft=muttrc +#------------------------------------------------------------ +# Vi Key Bindings +#------------------------------------------------------------ + +# Moving around +bind attach,browser,index g noop +bind attach,browser,index gg first-entry +bind attach,browser,index G last-entry +bind pager g noop +bind pager gg top +bind pager G bottom +bind pager k previous-line +bind pager j next-line + +# Scrolling +bind attach,browser,pager,index \CF next-page +bind attach,browser,pager,index \CB previous-page +bind attach,browser,pager,index \Cu half-up +bind attach,browser,pager,index \Cd half-down +bind browser,pager \Ce next-line +bind browser,pager \Cy previous-line +bind index \Ce next-line +bind index \Cy previous-line + +bind pager,index d noop +bind pager,index dd delete-message + +# Mail & Reply +bind index \Cm list-reply # Doesn't work currently + +# Threads +bind browser,pager,index N search-opposite +bind pager,index dT delete-thread +bind pager,index dt delete-subthread +bind pager,index gt next-thread +bind pager,index gT previous-thread +bind index za collapse-thread +bind index zA collapse-all # Missing :folddisable/foldenable diff --git a/.config/newsboat/config b/.config/newsboat/config index e529e60..0873111 100644 --- a/.config/newsboat/config +++ b/.config/newsboat/config @@ -47,4 +47,6 @@ highlight article "^(Feed|Title|Author|Link|Date):" green default bold highlight article "https?://[^ ]+" red default highlight article "\\[image\\ [0-9]+\\]" green default +color listnormal_unread cyan default +color info white black bold |