mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
emacs: Use message-signature-separator rather than hard-coded string.
It's possible that the user has instructed message-mode to use some other separator. If so, then that's what we should look for when looking for the signature. Thanks to David Edmondson <dme@dme.org> for pointing this out.
This commit is contained in:
parent
173a195da9
commit
3dac7305c2
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ list."
|
|||
;; insert the message body - but put it in front of the signature
|
||||
;; if one is present
|
||||
(goto-char (point-max))
|
||||
(if (re-search-backward "-- " nil t)
|
||||
(if (re-search-backward message-signature-separator nil t)
|
||||
(forward-line -1)
|
||||
(goto-char (point-max)))
|
||||
(insert body))
|
||||
|
|
Loading…
Reference in a new issue