X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=blobdiff_plain;f=emacstips.mdwn;h=f88635fa3f5477ad4317b3dab20ce931772367b5;hp=f34820080d0fd8cfd7ba5cce8e8def6716d4fe85;hb=87440cbc1d12fc3a860289b11d7b850b538dcf3d;hpb=f073eb8da95785078eacb57fb4c86bc2a9f95164 diff --git a/emacstips.mdwn b/emacstips.mdwn index f348200..f88635f 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 @@ -125,6 +133,16 @@ to your .emacs file. # Advanced tips and tweaks +## Overwriting the sender address + +If you want to always use the same sender address, then the following +defadvice can help you. + + (defadvice notmuch-mua-reply (around notmuch-fix-sender) + (let ((sender "Max Monster ")) + ad-do-it)) + (ad-activate 'notmuch-mua-reply) + ## Initial cursor position in notmuch 0.15 hello window In notmuch version 0.15 emacs client the handling of cursor position in @@ -326,51 +344,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 Emacs client can generally display HTML messages inline using one of the +supported HTML renderers. 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