aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryoctocell <public@yoctocell.xyz>2021-01-03 19:56:49 +0100
committeryoctocell <public@yoctocell.xyz>2021-01-03 19:56:49 +0100
commitc971b9e0bacb8816cfa26e036469f2b3aebafbe9 (patch)
tree7eea3d052d8f481d679ae1a3dc6a6d93c606390b
parent987f4e892aa091eb8a066d57ac3bb255d8725d84 (diff)
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.
-rw-r--r--git-email.el9
1 files changed, 9 insertions, 0 deletions
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