From 9a4067a8c6386eb82a63b0210310ec954ac8d382 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 19 Dec 2014 22:13:32 +0100 Subject: Add literate mailcap config --- mailcap/mailcap.org | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 mailcap/mailcap.org (limited to 'mailcap/mailcap.org') diff --git a/mailcap/mailcap.org b/mailcap/mailcap.org new file mode 100644 index 0000000..161b48d --- /dev/null +++ b/mailcap/mailcap.org @@ -0,0 +1,29 @@ +#+TITLE: Mailcap +#+PROPERTY: tangle .mailcap +#+PROPERTY: padline no +#+STARTUP: showall +#+OPTIONS: author:nil num:nil toc:nil +#+HTML_HEAD: + +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 -- cgit v1.2.3-54-g00ecf