[mew-int 00435] Re: Adding signature when replying to message

Reuben Thomas rrt at example.com
Wed Aug 29 22:11:50 JST 2001


> (add-hook 'mew-draft-mode-newdraft-hook 'my-mew-draft-insert-signature)
> (add-hook 'mew-before-cite-hook 'my-mew-draft-goto-body-beg)
> (defun my-mew-draft-insert-signature ()
>   (goto-char (point-max))
>   (mew-draft-insert-signature))

As it happens I didn't need to do this, because I have set
mew-insert-signature-last already (which does this).

> (defun my-mew-draft-goto-body-beg ()
>   (mew-header-goto-end)
>   (forward-line))

This bit did the trick! I was a bit stupid not to think of moving the
citation rather than moving the signature...

One question about style: most of the hints on this list seem to be of
the form "add this to your .mew.el". But often it is easier to change
something in customize (which is what it is there for!).

In this case I just added the two lines

mew-header-goto-end
forward-line

to the relevant hook. This avoids cluttering up my .mew.el, and also
avoids adding a new function.

Anyway, thank you for the hint, which I tested to write this message!

-- 
http://sc3d.org/rrt/
Kleineken: refreshes the dimensions other beers cannot reach



More information about the Mew-int mailing list