X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacstips.mdwn;h=484d5ca51f33eda8e82782e3f81f7f64a1ef6217;hb=80716217891d5ada185c1968d1c5d567dcee40e7;hp=f34820080d0fd8cfd7ba5cce8e8def6716d4fe85;hpb=f073eb8da95785078eacb57fb4c86bc2a9f95164;p=notmuch-wiki diff --git a/emacstips.mdwn b/emacstips.mdwn index f348200..484d5ca 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 @@ -326,51 +334,13 @@ useful to you. ## Viewing HTML messages with an external viewer -The emacs client can display an HTML message inline using either the -`html2text` library or some text browser, like w3m or lynx. This is -controlled by the `mm-text-html-renderer` variable. - -The first option is theorically better, because it can generate -strings formatted for emacs and do whatever you want, e.g., substitute -text inside <b> tags for bold text in the buffer. The library, however -is still in a very early development phase and cannot yet process -properly many elements, like tables and