diff options
| author | Yuchen Pei <id@ypei.org> | 2023-10-01 00:17:38 +1000 | 
|---|---|---|
| committer | Yuchen Pei <id@ypei.org> | 2023-10-01 00:17:38 +1000 | 
| commit | 8000632e15b0d08cf420776d0e55d257e9e27198 (patch) | |
| tree | 52daba4d9610a2cd82c2800444f47ce58c67b439 | |
| parent | 00670960f7ca8f56fc60623571137826a1893839 (diff) | |
[emacs] Add git-email
A client of git-send-email that integrates with gnus, magit and dired.
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | emacs/.emacs.d/init/ycp-vc.el | 17 | ||||
| m--------- | emacs/.emacs.d/lisp/git-email | 0 | 
3 files changed, 20 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules index eab45b2..8b1f8d4 100644 --- a/.gitmodules +++ b/.gitmodules @@ -109,3 +109,6 @@  [submodule "emacs/.emacs.d/lisp/fedi.el"]  	path = emacs/.emacs.d/lisp/fedi.el  	url = https://codeberg.org/martianh/fedi.el +[submodule "emacs/.emacs.d/lisp/git-email"] +	path = emacs/.emacs.d/lisp/git-email +	url = https://g.ypei.me/git-email.git 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 +Subproject 528647fa3ab01b384a9a98a5d9529de7295ad71  | 
