-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.mailcap
55 lines (46 loc) · 2.3 KB
/
.mailcap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
## .mailcap -- MIME Viewer configuration file
# Copyright (C) 2004-2021 Fabrice Niessen. All rights reserved.
# Author: Fabrice Niessen <[email protected]>
# Keywords: mailcap, dotfile
#* Commentary:
# There should also be a system-wide setting in `/etc/mailcap'...
#
# `%s' means "put the datafile name here when the viewer is executed"
#
# `test=test -n "$DISPLAY"' is used to determine if the current session is
# X-capable (by checking for the existence of a DISPLAY environment
# variable) -- DOES NOT WORK IN CYGWIN!?
#
# `copiousoutput' indicates that the output of the command may be
# *voluminous*; hence, requiring a pager (such as `more' or `less') or a
# scrolling window.
#* Code:
# application/pdf; cygstart "%s"
# text/html; cygstart "%s"
# application/vnd.ms-excel; cygstart "%s"
# application/vnd.ms-powerpoint; cygstart "%s"
# video/*; cygstart "%s"
application/*; xdg-open "%s"; test=sh -c 'test $DISPLAY'
application/ms-tnef; tnef -w "%s"
application/msword; "C:/Program Files/Microsoft Office/OFFICE11/WINWORD.EXE" /n /dde "%s"
# application/msword; strings "%s" | more; needsterminal
application/rtf; "C:/Program Files/Microsoft Office/OFFICE11/WINWORD.EXE" /n /dde "%s"
application/vnd.ms-excel; "C:/Program Files/Microsoft Office/OFFICE11/EXCEL.EXE" /e "%s"
application/vnd.ms-powerpoint; "C:/Program Files/Microsoft Office/OFFICE11/POWERPNT.EXE" "%s"
application/postscript; gsview32 "%s"
application/postscript; ps2ascii "%s"; copiousoutput
application/zip; "C:/Program Files/7-Zip/7zFM.exe" "%s"
application/octet-stream; "C:/Program Files/Mozilla Firefox/firefox.exe" "%s"
audio/*; xdg-open "%s"; test=sh -c 'test $DISPLAY'
audio/*; "C:/Program Files/Windows Media Player/wmplayer.exe" "%s"
image/*; xdg-open "%s"; test=sh -c 'test $DISPLAY'
image/*; "C:/Program Files/Mozilla Firefox/firefox.exe" "%s"
text/*; cat; copiousoutput; edit=$EDITOR "%s"
# This is for the sake of Emacs.
# Local Variables:
# comment-start: "#"
# mode: sh
# mode: outline-minor
# ispell-local-dictionary: "american"
# End:
## .mailcap ends here