unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "François Fleuret" <francois.fleuret@inria.fr>
Subject: Re: hooks and mail
Date: 30 Nov 2003 19:59:53 +0100	[thread overview]
Message-ID: <s02isl1el7a.fsf@wasabi.inria.fr> (raw)
In-Reply-To: 87ad6dajr5.fsf@libero.it

Hi,

> I'm sorry, but I can't understand how do hooks work.
> I'd like to set reply-to to a certain value;

There are two issues here ... How to set mail-default-reply-to's value
and how to make hooks.

To set mail-default-reply-to, I guess a simple

(setq-default mail-default-reply-to "my.other.name@my.other.address")

somewhere in your .emacs should do it.

For the hook

> (add-hook 'vm-mail-hook
>   '(lambda()
>     (setq mail-default-reply-to "me@host.xyz")
>   )
> )

I guess you should remove the ' before the function definition (at
least I dont have it in my own hook definitions).

Regards,

-- 
François Fleuret

  reply	other threads:[~2003-11-30 18:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-30 16:54 hooks and mail Guldo K
2003-11-30 18:59 ` François Fleuret [this message]
2003-11-30 23:00   ` Guldo K
2003-12-01 21:50     ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s02isl1el7a.fsf@wasabi.inria.fr \
    --to=francois.fleuret@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).