summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2014-09-11 09:51:40 +0200
committerDavid Bremner <david@tethera.net>2014-09-11 09:51:52 +0200
commit528fff88f131a53d77a4b07cbcd912b9ed69679b (patch)
tree59993bd2d995191fcd56af015077a0a4d2c719c8
parentf073eb8da95785078eacb57fb4c86bc2a9f95164 (diff)
add a quick tip about mailcap
-rw-r--r--emacstips.mdwn12
1 files changed, 10 insertions, 2 deletions
diff --git a/emacstips.mdwn b/emacstips.mdwn
index f348200..36bc09a 100644
--- a/emacstips.mdwn
+++ b/emacstips.mdwn
@@ -109,6 +109,14 @@ mentioned as script arguments. (Note: The script expects that you have
done
emacsclient -a '' -c -e "(progn (compose-mail) $attach_cmds)"
+## Controlling external handlers for attachements
+
+You can choose e.g. which pdf viewer to invoke from notmuch-show mode by
+adding a .mailcap file in your home directory. Here is an example:
+
+ application/pdf; /usr/bin/mupdf %s; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf
+ application/x-pdf; /usr/bin/mupdf %s; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf
+
## Issues with Emacs 24
If notmuch-show-mode behaves badly for you in emacs 24.x try adding one of
@@ -724,11 +732,11 @@ but as a contrib file, so you might have to work a bit to load it.
In Debian and derivatives,
- (add-to-list 'load-path "/usr/share/org-mode/lisp")
+ (add-to-list 'load-path "/usr/share/org-mode/lisp")
Then
- (require 'org-notmuch)
+ (require 'org-notmuch)
In general it is nice to have a key for org-links (not just for notmuch). For example