Christian Kruse [2016-01-27 08:56:31+01] wrote: > (defun ck/sign-message () > (interactive) > (goto-char (point-min)) > (search-forward "--text follows this line--") > (end-of-line) > (insert "\n") > > (mml-secure-message-sign-pgpmime)) > > (add-hook 'message-setup-hook 'ck/sign-message) > > This ensures that the signing marker is always the first thing in the > new message. Just this does the right thing here: (add-hook 'gnus-message-setup-hook #'mml-secure-message-sign) The difference is that i use gnus-...-hook, not message-...-hook. I also have mml-secure-message-sign which, by default, uses PGP MIME method so it's effectively the same as yours. -- /// Teemu Likonen - .-.. // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///