X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacstips.mdwn;h=c290192b7d2e8bd1ebd00f0a253a77d8ff8c9b51;hb=850e154903f6a36349938a595d7686be091dfa67;hp=484d5ca51f33eda8e82782e3f81f7f64a1ef6217;hpb=80716217891d5ada185c1968d1c5d567dcee40e7;p=notmuch-wiki diff --git a/emacstips.mdwn b/emacstips.mdwn index 484d5ca..c290192 100644 --- a/emacstips.mdwn +++ b/emacstips.mdwn @@ -133,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 @@ -371,13 +381,6 @@ With that in place, you need a `.msmtprc` with the accounts configured for the domains you want to send out using specific SMTP servers and the rest will go to the default account. -If you have a hard time getting the above to work for you, as I did, -it's also possible to add a message-send-mail-hook in your .emacs to -send the from header explicitly as an argument to msmtp as described -[here](http://www.emacswiki.org/cgi-bin/wiki/GnusMSMTP#toc2) on the -emacswiki. - - ## Address completion when composing There are currently three solutions to this: