Skip to content

Commit

Permalink
autoview odt files
Browse files Browse the repository at this point in the history
  • Loading branch information
adam8157 committed Oct 22, 2012
1 parent 3c1f06c commit 7baccdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .mutt/mailcap
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
application/msword; antiword %s|uniq; copiousoutput
application/pdf; pdftotext -enc UTF-8 %s /dev/stdout; copiousoutput
application/vnd.oasis.opendocument.text; odt2txt %s|uniq; copiousoutput
image/*; sxiv %s; test=test -n "$DISPLAY"
text/html; w3m -dump -ppc 9 -I %{charset} -T text/html %s|uniq; copiousoutput
7 changes: 5 additions & 2 deletions .muttrc
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ set quit=ask-yes
# Ask for a key after command
set wait_key=yes

# Auto view
# Mailcap
set mailcap_path=~/.mutt/mailcap
auto_view text/html application/pdf application/msword
mime_lookup application/octet-stream

# Auto view
auto_view application/msword application/pdf application/vnd.oasis.opendocument.text text/html

# Message included in reply
set include=yes
Expand Down

0 comments on commit 7baccdc

Please sign in to comment.