forked from fniessen/emacs-leuven
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mailcap
58 lines (49 loc) · 2.56 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
56
57
58
## .mailcap -- MIME Viewer configuration file
# Copyright (C) 2004-2016 Fabrice Niessen
# 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/ms-tnef; tnef -w "%s"
application/msword; "c:/Program Files (x86)/LibreOffice 4/program/soffice.exe" -writer "%s"; test=sh -c 'test $DISPLAY'
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; soffice -calc "%s"; test=sh -c 'test $DISPLAY'
application/vnd.ms-excel; "C:/Program Files/Microsoft Office/OFFICE11/EXCEL.EXE" /e "%s"
application/vnd.ms-powerpoint; soffice -impress "%s"; test=sh -c 'test $DISPLAY'
application/vnd.ms-powerpoint; "C:/Program Files/Microsoft Office/OFFICE11/POWERPNT.EXE" "%s"
application/postscript; ghostview "%s"; test=sh -c 'test $DISPLAY'
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/*; totem "%s"; test=sh -c 'test $DISPLAY'
audio/*; "C:/Program Files/Windows Media Player/wmplayer.exe" "%s"
image/*; display "%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