Skip to content

Commit

Permalink
mutt handle pdf, shut up mutt, cache headers and body
Browse files Browse the repository at this point in the history
  • Loading branch information
aeolyus committed Apr 23, 2019
1 parent 20e000b commit 1c6200c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mutt/.config/mutt/mailcap
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
audio/*; /usr/bin/xdg-open %s

image/*; /usr/bin/xdg-open %s
image/*; /usr/bin/xdg-open %s >/dev/null

application/msword; /usr/bin/xdg-open %s
application/pdf; /usr/bin/xdg-open %s
application/pdf; llpp %s
application/postscript ; /usr/bin/xdg-open %s

text/html; /usr/bin/firefox %s >/dev/null 2>&1; needsterminal
Expand Down
11 changes: 8 additions & 3 deletions mutt/.config/mutt/muttrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,26 @@ set record = ""
set trash = "+[Gmail]/Trash"
set postponed = "+[Gmail]/Drafts"
set mail_check = 5
set header_cache = "~/.cache/mutt/"
set message_cachedir = "~/.cache/mutt/"

set edit_headers
set editor = "nvim +/^$ ++1"
set move = no
set mailcap_path = ~/.config/mutt/mailcap
set sort = "reverse-date"
set wait_key = no # shut up, mutt
set quit

timeout-hook 'exec sync-mailbox'
startup-hook 'exec sync-mailbox'
shutdown-hook 'exec sync-mailbox'

macro index S "<shell-escape>mbsync -Va >/dev/null 2>&1 &<enter>" "Check for new mail"

mailboxes =INBOX =[Gmail]/Sent\ Mail =[Gmail]/All\ Mail =[Gmail]/Drafts =[Gmail]/Spam =[Gmail]/Trash
source "gpg -qd ~/.config/mutt/mutt_secrets.gpg |"

# Sidebar mappings
set sidebar_visible = yes
set sidebar_width = 22
Expand Down Expand Up @@ -60,9 +67,6 @@ macro index gs "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to sent messages"
macro index gt "<change-folder>=[Gmail]/Trash<enter>" "Go to trash"
macro index,pager e "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive"

mailboxes =INBOX =[Gmail]/Sent\ Mail =[Gmail]/All\ Mail =[Gmail]/Drafts =[Gmail]/Spam =[Gmail]/Trash
source "gpg -qd ~/.config/mutt/mutt_secrets.gpg |"

# Default index colors:
color index yellow default '.*'
color index_author red default '.*'
Expand All @@ -86,6 +90,7 @@ mono indicator reverse
mono error bold
color normal default default
color indicator black white
color progress black green
color sidebar_highlight red default
color sidebar_divider brightblack black
color sidebar_flagged red black
Expand Down

0 comments on commit 1c6200c

Please sign in to comment.