Add literate mailcap config
This commit is contained in:
parent
28aae66e28
commit
9a4067a8c6
5 changed files with 39 additions and 5 deletions
3
functions.mk
Normal file
3
functions.mk
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
define tangle =
|
||||||
|
emacs -Q -batch -l "ob-tangle" -eval "(org-babel-tangle-file \"$<\")"
|
||||||
|
endef
|
1
mailcap/.gitignore
vendored
Normal file
1
mailcap/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.mailcap
|
|
@ -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
|
|
6
mailcap/Makefile
Normal file
6
mailcap/Makefile
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
include ../functions.mk
|
||||||
|
|
||||||
|
files: .mailcap
|
||||||
|
|
||||||
|
.mailcap: mailcap.org
|
||||||
|
$(call tangle)
|
29
mailcap/mailcap.org
Normal file
29
mailcap/mailcap.org
Normal file
|
@ -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
|
Loading…
Reference in a new issue