summaryrefslogtreecommitdiffstats
path: root/mailcap
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-12-19 22:13:32 +0100
committerGravatar Tom Willemse2014-12-19 22:13:32 +0100
commit9a4067a8c6386eb82a63b0210310ec954ac8d382 (patch)
treee625d0feede48a4956b8f970b68a711205f80a64 /mailcap
parent28aae66e28f82d24b59170f5e802f18f61391869 (diff)
downloaddotfiles-9a4067a8c6386eb82a63b0210310ec954ac8d382.tar.gz
dotfiles-9a4067a8c6386eb82a63b0210310ec954ac8d382.zip
Add literate mailcap config
Diffstat (limited to 'mailcap')
-rw-r--r--mailcap/.gitignore1
-rw-r--r--mailcap/.mailcap5
-rw-r--r--mailcap/Makefile6
-rw-r--r--mailcap/mailcap.org29
4 files changed, 36 insertions, 5 deletions
diff --git a/mailcap/.gitignore b/mailcap/.gitignore
new file mode 100644
index 0000000..b733d69
--- /dev/null
+++ b/mailcap/.gitignore
@@ -0,0 +1 @@
+.mailcap
diff --git a/mailcap/.mailcap b/mailcap/.mailcap
deleted file mode 100644
index 3a78b82..0000000
--- a/mailcap/.mailcap
+++ /dev/null
@@ -1,5 +0,0 @@
-application/pdf; zathura %s
-image/*; gimp %s
-image/*; feh %s
-application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice %s
-application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice %s
diff --git a/mailcap/Makefile b/mailcap/Makefile
new file mode 100644
index 0000000..f69cced
--- /dev/null
+++ b/mailcap/Makefile
@@ -0,0 +1,6 @@
+include ../functions.mk
+
+files: .mailcap
+
+.mailcap: mailcap.org
+ $(call tangle)
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: <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