aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init/ycp-vc.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/init/ycp-vc.el')
-rw-r--r--emacs/.emacs.d/init/ycp-vc.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init/ycp-vc.el b/emacs/.emacs.d/init/ycp-vc.el
index 4513d45..8a3fed5 100644
--- a/emacs/.emacs.d/init/ycp-vc.el
+++ b/emacs/.emacs.d/init/ycp-vc.el
@@ -132,6 +132,23 @@
"C-x g" #'my-magit-status)
)
+(my-package git-email
+ (:delay 30)
+ ;; Fixes concatenation of the subject and the first line, when
+ ;; there's one empty line in between
+ (setq git-email-subject-regexp
+ (rx bol "Subject:"
+ (zero-or-more space) "["
+ (zero-or-more (not (any "]" "\n")))
+ "PATCH"
+ (zero-or-more (not (any "]" "\n")))
+ "]" (one-or-more space)
+ (one-or-more not-newline)))
+ (require 'my-git-email)
+ (setq git-email-compose-email-function 'my-git-email-gnus-compose)
+ (require 'git-email-magit)
+ )
+
(my-package magit-annex
(:delay 60))