summaryrefslogtreecommitdiffstats
path: root/mailcap/mailcap.org
blob: 161b48d1cb2b6af16cc33e90ce1b00e65b60ff66 (plain)
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
#+TITLE: Mailcap
#+PROPERTY: tangle .mailcap
#+PROPERTY: padline no
#+STARTUP: showall
#+OPTIONS: author:nil num:nil toc:nil
#+HTML_HEAD: <link href="https://ryuslash.org/org.css" rel="stylesheet" type="text/css" />

This is mostly used, in my case, for telling Gnus how to open certain
files.

- Use [[https://pwmt.org/projects/zathura/][zathura]] to read PDF files.

  #+BEGIN_SRC fundamental
    application/pdf; zathura %s
  #+END_SRC

- Use [[http://www.gimp.org/][GIMP]] or [[http://feh.finalrewind.org/][feh]] to open any image files.

  #+BEGIN_SRC fundamental
    image/*; gimp %s
    image/*; feh %s
  #+END_SRC

- Use [[https://www.libreoffice.org/][LibreOffice]] to open any ~.docx~ or ~.xlsx~ files.

  #+BEGIN_SRC fundamental
    application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice %s
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice %s
  #+END_SRC