summaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
authorThomas Voss <thomas.voss@humanwave.nl> 2026-03-20 16:35:34 +0100
committerThomas Voss <thomas.voss@humanwave.nl> 2026-03-20 16:36:01 +0100
commitcb3a583e6969262ecab14f026922492b4594a2f7 (patch)
treeda2a40ec9ce9cf7977b2dd3ad60d44a33ffbf089 /.config/emacs
parent46e4626e4a9326fd32161459db1a22af7b791902 (diff)
emacs: Add ‘mm-humanwave-insert-last-commit-message’
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/modules/mm-humanwave.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/emacs/modules/mm-humanwave.el b/.config/emacs/modules/mm-humanwave.el
index f9e59b4..2e58b13 100644
--- a/.config/emacs/modules/mm-humanwave.el
+++ b/.config/emacs/modules/mm-humanwave.el
@@ -158,4 +158,14 @@ to the `project-find-file' command."
(message "%s" path)
path))))
+(defun mm-humanwave-insert-last-commit-message ()
+ "TODO"
+ (interactive)
+ (insert
+ (with-temp-buffer
+ (call-process "git" nil t nil "log" "-1" "--pretty=%s")
+ (goto-char (point-min))
+ (replace-regexp "\\`HW-[0-9]+ " "")
+ (string-trim (buffer-string)))))
+
(provide 'mm-humanwave)