help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hooks and mail


From: Guldo K
Subject: hooks and mail
Date: Sun, 30 Nov 2003 16:54:46 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Hello.
I'm sorry, but I can't understand how do hooks work.
I'd like to set reply-to to a certain value;
I wrote:
(add-hook 'vm-mail-hook
  '(lambda()
    (setq mail-default-reply-to "address@hidden")
  )
)

but it does not work.
I tried some other sintaxes, with no luck.
How can it be achieved?
What's that lambda() I found in emacs manual,
I can't understand.

Can't the value of a variable be used in a hook?
Such as '(setq variable 'other-var-value) ?

Thanks,

Guldo


reply via email to

[Prev in Thread] Current Thread [Next in Thread]