summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-05-31 22:11:20 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-05-31 22:11:20 +0200
commit767a9f41d935b7dcb574312920f051064406b251 (patch)
tree069fba99ed62feafae2cf358e89d91a9e09f0b82
parent580f68274b1652e1bf6dfa75b042874fa02a1830 (diff)
downloaddotfiles-767a9f41d935b7dcb574312920f051064406b251.tar.gz
dotfiles-767a9f41d935b7dcb574312920f051064406b251.tar.xz
dotfiles-767a9f41d935b7dcb574312920f051064406b251.zip
Mutt: update html + add pdf and ics handlers (incl. mutt-ical)
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--.gitmodules3
l---------.local/bin/mutt-ical1
-rw-r--r--.mailcap32
m---------.mutt/mutt-ical0
4 files changed, 35 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
index 334fcde..3b1cf1f 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -13,3 +13,6 @@
[submodule ".cheat"]
path = .cheat
url = git://github.com/robin/chitsheet.git
+[submodule ".mutt/mutt-ical"]
+ path = .mutt/mutt-ical
+ url = git://github.com/jnpkrn/mutt-ical.git
diff --git a/.local/bin/mutt-ical b/.local/bin/mutt-ical
new file mode 120000
index 0000000..59a3468
--- /dev/null
+++ b/.local/bin/mutt-ical
@@ -0,0 +1 @@
+../../.mutt/mutt-ical/mutt-ical.py \ No newline at end of file
diff --git a/.mailcap b/.mailcap
index cfb885c..473fd22 100644
--- a/.mailcap
+++ b/.mailcap
@@ -1 +1,31 @@
-text/html; /bin/w3m -T text/html -dump; copiousoutput
+### HTML ###
+
+text/html; /bin/w3m -T text/html -o display_link_number=1 -dump; copiousoutput
+
+### PDF ###
+
+# elinks: more colors
+#application/pdf; pdftohtml -i -q -stdout %s | elinks -dump-color-mode 2 \
+# -eval "set ecmascript.enable=0" \
+# -eval "set document.colors.use_document_colors=1" \
+# -eval "set document.colors.text='black'" \
+# -eval "set document.colors.increase_contrast=0" \
+# -dump | less; needsterminal
+
+# w3m: minimum colors
+# -o display_ins_del=1
+application/pdf; pdftohtml -i -q -stdout %s | w3m -X -T text/html \
+ -o confirm_qq=0 \
+ -o display_link=1 \
+ -o display_link_number=1 \
+ -o mark_all_pages=1; needsterminal
+
+# w3m: some sed removals needed
+#application/pdf; echo 'Q' | script -qc \
+# "pdftohtml -i -q -stdout %s | LINES=1000 w3m -X -T text/html" - \
+# | less; needsterminal
+
+### CALENDAR INVITES ###
+
+text/calendar; mutt-ical -i -e "jpokorny@redhat.com" %s; needsterminal
+application/ics; mutt-ical -i -e "jpokorny@redhat.com" %s; needsterminal
diff --git a/.mutt/mutt-ical b/.mutt/mutt-ical
new file mode 160000
+Subproject f1cd0229cda494a2429a08a9560805c7d3b1208