From c971b9e0bacb8816cfa26e036469f2b3aebafbe9 Mon Sep 17 00:00:00 2001 From: yoctocell Date: Sun, 3 Jan 2021 19:56:49 +0100 Subject: Add variable for message function Let the user choose what function to use for composing a message. * git-email.el (git-email--compose-message-function): Init. --- git-email.el | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'git-email.el') diff --git a/git-email.el b/git-email.el index c7fbb0d..6729f03 100644 --- a/git-email.el +++ b/git-email.el @@ -26,6 +26,15 @@ ;;; Code: +(defgroup git-email nil + "Work with git and email." + :group 'convenience) + +(defcustom git-email--compose-message-function 'message-mail + "The function used to compose patch mail." + :group 'git-email + :type 'symbol) + (defun git-email--extract-header (header patch-file) "Extract HEADER from PATCH-FILE." (with-temp-buffer -- cgit v1.2.3