diff options
author | yoctocell <public@yoctocell.xyz> | 2021-01-04 16:16:44 +0100 |
---|---|---|
committer | yoctocell <public@yoctocell.xyz> | 2021-01-04 16:22:36 +0100 |
commit | 2ed354ea4960aaf9263a6ad2ba5b4e73a25495db (patch) | |
tree | 006140df37d551bebb717efaea29004b6a1509a7 /git-email.el | |
parent | c3a39c6a62a1fda0723832e50217fab8f534f5d0 (diff) |
Remove '*** SUBJECT HERE ***' in message buffer
Put the cursor at the subject header if the message is a cover letter.
* git-email.el (git-email--compose-email):
Diffstat (limited to 'git-email.el')
-rw-r--r-- | git-email.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git-email.el b/git-email.el index 0ddf93d..0539dc2 100644 --- a/git-email.el +++ b/git-email.el @@ -211,7 +211,9 @@ them into the message buffer." ;; (re-search-forward "--text follows this line--")))) (goto-char (point-max)) (save-excursion - (insert diff)))) + (insert diff)) + (when (re-search-backward "\\*\\*\\* SUBJECT HERE \\*\\*\\*" nil t) + (kill-line)))) (provide 'git-email) |