How can I make message-insert-signature not inserting the -- prefix? If not possible, is there a another function that inserts signature without the -- prefix?

  • You want the -- prefix. That is the standard way of identifying a signature. It is what enables clients to parse a signature as a signature. Are you trying to use this for some other purpose?
    – phils
    Oct 25, 2016 at 3:41
  • @phils I normally don't have a long signature (just my name) and I would just need two new lines to separate my "signature". If this is not called a signature, how can I insert something like that, either before or after the quoted message in the case of reply?
    – xuhdev
    Oct 25, 2016 at 3:49
  • I'd suggest using a custom function with message-signature-setup-hook (which runs immediately prior to message-insert-signature) to insert your name. You would not use the normal signature config at all in that case.
    – phils
    Oct 25, 2016 at 3:59

1 Answer 1


A signature like this can be inserted using the following code:

          (if (not (eq message-cite-reply-position 'above))
            (insert "\n\n")
          (insert "\n\n")
          (insert "MY SIGNATURE"))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.