From 8000632e15b0d08cf420776d0e55d257e9e27198 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sun, 1 Oct 2023 00:17:38 +1000 Subject: [emacs] Add git-email A client of git-send-email that integrates with gnus, magit and dired. --- emacs/.emacs.d/init/ycp-vc.el | 17 +++++++++++++++++ emacs/.emacs.d/lisp/git-email | 1 + 2 files changed, 18 insertions(+) create mode 160000 emacs/.emacs.d/lisp/git-email (limited to 'emacs') 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)) diff --git a/emacs/.emacs.d/lisp/git-email b/emacs/.emacs.d/lisp/git-email new file mode 160000 index 0000000..528647f --- /dev/null +++ b/emacs/.emacs.d/lisp/git-email @@ -0,0 +1 @@ +Subproject commit 528647fa3ab01b384a9a98a5d9529de7295ad716 -- cgit v1.2.3